[whatwg] Enabling LCD Text in 2D canvases.
Justin Novosad
junov at chromium.org
Wed Nov 14 12:48:15 PST 2012
On Wed, Nov 14, 2012 at 2:51 PM, Robert O'Callahan <robert at ocallahan.org>wrote:
>
>
> Given how 2d canvas currently works, I don't see any killer solution that
>> would allow subpixel antialiased text without any caveats.
>>
>
> We could keep two copies of the canvas buffer: one rendered with subpixel
> AA and one without, and use the latter for rendering if we think it might
> be resampled. Of course, this isn't going to perform very well.
>
Hmmm... you might be on to something here. Performance may not be that bad
if the buffers are lazily resolved. And if it is an opt-in option, then
everyone is a fast as possible by default.
> Are there precedents for exposing features with documented caveats?
>> (excluding caveats that were discovered after the fact)
>>
>
> Yes, and many of them have been extremely problematic, because Web authors
> will ignore the caveats. However, it can be acceptable as long as the bad
> behavior is well-defined and implemented consistently across browsers.
>
Yeah, it is a slippery slope.
>
>
More information about the whatwg
mailing list