From d13660e8bc70317c2212410cd5cf50b046e22d0f Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Tue, 3 Nov 2026 04:54:22 -0800 Subject: [PATCH] Tests: isolate font wheel picking from missing-glyph protection --- crates/ui-egui/src/tests/font_menu.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/ui-egui/src/tests/font_menu.rs b/crates/ui-egui/src/tests/font_menu.rs index 624c32c7e..fa80c359d 100644 --- a/crates/ui-egui/src/tests/font_menu.rs +++ b/crates/ui-egui/src/tests/font_menu.rs @@ -206,6 +206,9 @@ fn a_press_outside_the_menu_ends_the_preview_at_once() { /// A document with point type in Inter, selected; its id. fn selected_inter(app: &mut VectorcraftApp) -> u64 { app.run("file.new", json!({"width": 300, "height": 200})).unwrap(); + // These tests exercise font picking, including system fonts without Latin glyphs. Missing + // glyph protection would intentionally keep the sample text in its previous font. + app.run("prefs.set", json!({"key": "missingGlyphProtection", "value": false})).unwrap(); let id = app.session.execute("text.create", &json!({"x": 20, "y": 50, "text": "Gagaku", "font": "Inter"})).unwrap()["id"].as_u64().unwrap(); app.session.execute("select.set", &json!({"ids": [id]})).unwrap(); if !crate::panel_docking::showing(&app.ui, "character") {