test(ui-egui): idle harness scans system fonts before its first frame

This commit is contained in:
RiceDee
2026-10-20 15:29:27 +11:00
parent dd6bd3fe1c
commit bbe1a12eeb
+4
View File
@@ -26,6 +26,10 @@ pub(crate) struct Harness {
impl Harness {
pub(crate) fn new(s: Session) -> Self {
// The one system font scan bumps the layout generation, which makes the canvas render
// again: scanned here, before the first frame, rather than by whichever test happens to
// run first while this one waits for idle (#333).
figcraft_text::scan_system_fonts();
Self { ctx: egui::Context::default(), app: FigApp::new(s, Box::new(NoServices)), time: 0.0 }
}