mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-25 20:01:07 +01:00
FontFace::glyph_name looked each name up in the font. In a version 2.0 post table the names are one run of strings, and read-fonts walks that run from its start for every lookup. The Glyphs panel builds the tooltip of every visible cell in every frame, and the tooltip of a glyph that no character maps carries its name, so each frame scanned the table once per such cell. glyph_name now reads every name of the face in one pass the first time it is asked, through skrifa's name iterator, and keeps them on the face. A new test checks the kept names against each glyph's own lookup for every bundled face.