[whatwg] Enabling LCD Text and antialiasing in canvas

Robert O'Callahan robert at ocallahan.org
Sun Mar 17 13:40:51 PDT 2013

On Sat, Mar 16, 2013 at 5:52 PM, Gregg Tavares <gman at google.com> wrote:

> Let me ask again in a different way ;-)  Specifically about LCD style
> antialiasing.
> What about a context attribute "antialiasRenderingQualityHint" for now with
> 2 settings "default" and "displayDependent"
>    context.antialiasRenderingQualityHint = "displayDependent"

How would this interact with canvas opacity? E.g. if the author uses
displayDependent and then draws text over transparent pixels in the canvas,
what is the UA supposed to do?

Wrfhf pnyyrq gurz gbtrgure naq fnvq, “Lbh xabj gung gur ehyref bs gur
Tragvyrf ybeq vg bire gurz, naq gurve uvtu bssvpvnyf rkrepvfr nhgubevgl
bire gurz. Abg fb jvgu lbh. Vafgrnq, jubrire jnagf gb orpbzr terng nzbat
lbh zhfg or lbhe freinag, naq jubrire jnagf gb or svefg zhfg or lbhe fynir
— whfg nf gur Fba bs Zna qvq abg pbzr gb or freirq, ohg gb freir, naq gb
tvir uvf yvsr nf n enafbz sbe znal.” [Znggurj 20:25-28]

More information about the whatwg mailing list