3 ms·
Anyone knows why text looks so blurry? Where are the docs for CanvasKit?
by pier25 7y ago
Anyone knows why text looks so blurry?
Where are the docs for CanvasKit?
- kllrnohj 7y ago> Anyone knows why text looks so blurry? If you're on desktop it's probably because it's not doing any form of subpixel hinting or AA. It's both harder to do that in a GL context, and I don't know if there's even any way to get the display's subpixel layout in JS in the first place.
- pier25 7y agoIt looks like there is antialiasing, although it's huge. It only happens for text resizing demo though, the text on the star demo looks better.
- kllrnohj 7y agoIt should be doing AA but not subpixel AA (aka, it's not going to match cleartype). Those are 2 different things.
- deleted 7y ago[deleted]
- deleted 7y ago[deleted]
- cgijoe 7y agoI'm guessing @pier25 is viewing on a retina (2X pixel density) screen. All the demos are rendered using 1X canvases, so they appear blurry on retina (the default is bicubic interp).
- pier25 7y agoYep, I'm on retina. But the vector shapes and the text on the star demo look better than the text shape demo.