I’m just gonna say it: DirectWrite is an impressive feat of engineering. Microsoft managed to make an API that’s not only the worst font library in existence, it’s worse than GDI.
-
Show this thread
-
Just one example: There is no DirectWrite API to render a glyph using grayscale antialiasing. Only bilevel (black & white) and LCD subpixel AA are supported. To render grayscale, you render LCD subpixel and extract the green channel. Really.https://github.com/servo/webrender/blob/master/webrender/src/platform/windows/font.rs#L329 …
1 reply 3 retweets 18 likesShow this thread -
Replying to @pcwalton
Do you not have the option to specify DWRITE_TEXT_ANTIALIAS_MODE_GRAYSCALE??
1 reply 0 retweets 0 likes
Replying to @retep998
We use the Texture interface from IDWriteGlyphRunAnalysis, not IDWriteBitmapRenderTarget.
8:06 AM - 18 Jul 2018
from Dogpatch, San Francisco
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.