mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-19 06:38:44 +00:00
While Type > Find Font... is open, the dialog ran text.fonts on every frame, and the missing-font walk on every frame where a folder picker is available. Each walks all of the document's type and resolves its fonts. The dialog now keeps both answers for the active document's uid, the version of its content and the font database's generation, and works them out again only when one of those changes. A new selection keeps them. The list, its counts and statuses, and Find in Folder... are the same as before. With 2,000 point-type objects of 50 characters each, this took a median 1.53 ms of thread CPU time per frame in a release build on Linux; later frames of one version now take about 10 ns. With 20 such objects it took 58 us per frame.