mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-25 03:29:58 +00:00
The Type overlay layout-count tests in vectorcraft-tools held a read lock that only tests which add fonts or change hyphenation exceptions take for writing. Other tests still load system fonts on demand (a fallback for a character no loaded font covers, a cataloged family on first use), which changes FontDb::global()'s generation, the key of every kept frame layout. type_overlays_keep_at_most_frame_layouts_max then laid out 2051 frames instead of 2 in 18 of 21 full `cargo test -p vectorcraft-tools --lib` runs on Linux. vectorcraft_text::test_fonts::steady_fonts (test and test-fonts builds only) now holds back font changes on other threads: adding faces, a rescan and setting or removing a composite font wait before they publish anything. A first scan does not wait, and steady_fonts catalogs the database before it returns. steady_layout_inputs() takes it for the global database. With it, 0 of 20 full runs failed.