Re:Adventures in Text Rendering: Kerning and Glyph Atlases
by billconan on Wednesday July 27, 2022 @02:07PM
(#32254158)
Thank you for the answers! I built a rust lib to generate multi-channel signed distance field font texture. I wanted to make it a text rendering lib. But after learning how complex it is, I guess I should give up and simply use core text...
[ Parent
| on HN ]
Re:Adventures in Text Rendering: Kerning and Glyph Atlases
by vorporeal on Friday July 29, 2022 @10:55AM
(#32277739)
MSDF seems like a great choice, depending on your use-case. Given that we don't need to draw text at multiple scales, it doesn't seem to provide much benefit for us over caching rasterized glyphs provided by Core Text. (Copying a rasterized glyph is certainly faster than evaluating an SDF.)
Using Core Text also means our text looks the same as it does in other applications, which avoids bug reports from users like "text in Warp looks different than in iTerm". :)