4 ms·
a huge amount of emoji are embedded png in font files. newer ones, however, do require more work. > figure out which glyphs are required for your codepoint and
by audidude 4y ago
a huge amount of emoji are embedded png in font files. newer ones, however, do require more work.
> figure out which glyphs are required for your codepoint and use your font metrics to composite the glyphs appropriately.
this is all done in shaping though, the renderers just see "put this thing there" and (at least in GTK) we just maintain texture atlases that are updated on the fly.
you're correct that it doesn't solve the same glyph at lots of scales though. but glyphy does (and at high FPS too).
- kilburn 4y agoGTK's implementation of text rendering is is admittedly broken in several subtle ways that nobody seems to know how to properly fix. [1] Also, this is while _not_ supporting fractional scaling, which is something that users definitely want. To be clear, I'm not bashing on GTK. I'm saying that it definitely isn't as simple as the above comment implies ;) [1] https://gitlab.gnome.org/GNOME/gtk/-/issues/3787 https://gitlab.gnome.org/GNOME/gtk/-/issues/3787
- audidude 4y agoThat issue is literally why I have a branch integrating GLyphy. But yes, your casual drive by comment is definitely more knowledgeable than the people who work on the stuff.