Integration: #5566 the panel-defaults harness waits for the font scan

This commit is contained in:
aiongg
2026-10-22 15:39:47 +00:00
parent af12584f47
commit e6f7af8ce7
+2
View File
@@ -108,6 +108,8 @@ mod panel_defaults {
use photocraft_doc::text::{Caps, Kerning, Orientation, TextAlign, TextShape};
fn panels(app: PhotocraftApp) -> Harness<'static, PhotocraftApp> {
// Wait for the font scan: while it runs the panels repaint every 100 ms and `Harness::run` gives up.
let _ = photocraft_text::shared();
let mut h = Harness::builder().with_size(vec2(760.0, 800.0)).build_ui_state(
|ui, app: &mut PhotocraftApp| {
if ui.ctx().fonts(|f| f.families().contains(&egui::FontFamily::Name("medium".into()))) {