Files
vectorcraft/crates/ui-egui
dotCooCoo fbd72fc4af Tests: Japanese dialog clicks wait for the CJK font lookup
On Linux, the interface fonts find a CJK face through a fontconfig
lookup that runs on its own thread and starts the first time a CJK
character has no glyph. Until it ends, Japanese labels draw without
glyphs. The pass after it ends registers the face, and the next frame
lays the labels out again, which moves the controls around them.

hyphenation_keeps_focused_edits_until_cancel_or_ok and
localized_compact_gallery_pointer_applies_and_cancels measure their
controls in one frame and click them frames later. When the lookup ends
in between, the click misses: the Hyphenation checkbox keeps its old
value ("ja Cancel: Some(8.0), (Some(8.0), Some(false))"), or the
gallery's OK applies nothing. A loaded machine slows the lookup's
fc-match runs, so it ends inside the Japanese pass.

testing::wait_for_cjk_fonts starts the lookup and waits for it through
its completion callback, with no timeout. Both tests call it before
they measure anything, so each new context registers its face after its
first pass and the controls stay in place from then on.
2026-11-28 02:37:26 -08:00
..
…