From e4b1f17522477aada96abd5d3b52028bce853b3c Mon Sep 17 00:00:00 2001 From: Hakan Seven Date: Thu, 23 Jul 2026 14:09:38 +0300 Subject: [PATCH] test(font): cover the Shx face variant in resolution test `case_insensitive_ttf_resolution` matched `Face::resolve` against Ttf and Lff only; the SHX shape-font variant added later left the match non-exhaustive, which failed the whole lib-test build. Add the arm. Co-Authored-By: Claude Fable 5 --- src/scene/text/font_face.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/scene/text/font_face.rs b/src/scene/text/font_face.rs index e4b5efee4..832e1eaf4 100644 --- a/src/scene/text/font_face.rs +++ b/src/scene/text/font_face.rs @@ -236,6 +236,10 @@ mod tests { // they should resolve to Ttf. If they aren't installed, Lff fallback is accepted. eprintln!("Font {} resolved to Lff (probably not installed)", test_name); } + Face::Shx { .. } => { + // A system TTF name never resolves to an SHX shape font. + eprintln!("Font {} resolved to Shx (unexpected)", test_name); + } } } }