mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-25 20:14:31 +01:00
- The load queue is made once per context, as TextureLoader's is: without a host, default_jobs() returned a new Arc each call, so every new face made a new queue and dropped the loads before it. - The begin-pass step marks a face unavailable when its load is neither queued nor running and delivered no result (a job that panicked), so the row stops asking for passes. - A kept face's draw mark is journaled, so a settled view's replay marks the faces its run drew and eviction keeps them while on screen. - One budget over the files the registry keeps plus the files egui still holds for faces taken out. Past it, the faces drawn longest ago go down to half the budget and egui's fonts are made again once. The budget is a registry field; trials set it with testing::document_face_budget. - FacesCx::document_face takes a closure that makes the load, called only for a new key, so a ready face clones no FaceInfo or catalog. - Similar fonts weigh a family by its file's raw usWeightClass again (FaceInfo::weight_class, None without OS/2; 400 then), not the scan's weight. The review point that families without OS/2 data now join Similar fonts was checked: the old read_traits listed them too, with zero PANOSE and weight 400, so they stay.