mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-10 18:40:27 -06:00
install_fonts caches system_ui_fonts in a OnceLock; the face bytes are leaked once and borrowed (Cow::Borrowed) by each FontData, so a language change reorders the faces without re-reading font files or copying them. SystemFont.bytes is a Cow<'static, [u8]>. Also: line_metrics no longer sits between feature's doc comment and feature (crates/fonts), and the canvas texture test's frame closure drops an unneeded mut.