From aeaa3684a8957552af50f5b1c2b020d48c4324a0 Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Tue, 13 Oct 2026 13:39:33 -0600 Subject: [PATCH] TEXT-TEST: require actual Symbol character coverage --- crates/text/src/tests.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/text/src/tests.rs b/crates/text/src/tests.rs index 1e2be177..663834b8 100644 --- a/crates/text/src/tests.rs +++ b/crates/text/src/tests.rs @@ -828,8 +828,11 @@ fn symbol_font_characters_draw_in_the_sym_font() { // U+F0DE is the Symbol font's double arrow (⇒). It must come from that font, not from // whichever installed font happens to map U+F0DE (Wingdings draws an arrow at another angle). let symbol = "Symbol"; - if !FontDb::global().has_family(symbol) { - eprintln!("skipped: no Symbol font installed"); + let db = FontDb::global(); + // Some installed Symbol faces use Unicode mappings only, without the legacy U+F0xx cmap. + // This integration test needs a face that can draw the symbol code used by the document. + if !db.has_family(symbol) || !db.face(symbol, "Regular").covers('\u{F0DE}') { + eprintln!("skipped: no installed Symbol face covers U+F0DE"); return; } let (p, mut sh) = setup("x\u{F0DE}y", 600.0, 300.0);