From f1b5f0b4de998fccd0eedf5ac635bbb6a8057fd9 Mon Sep 17 00:00:00 2001 From: vangel76 Date: Sat, 7 Nov 2026 18:24:08 +0100 Subject: [PATCH] Layout test: install the pinned fonts before the #4720 chart fallback lookup The test asked the global font database for a fallback face before any layout call, so the pinned fonts could no longer be installed. Co-Authored-By: Claude Sonnet 5.5 --- crates/layout/src/tests.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/layout/src/tests.rs b/crates/layout/src/tests.rs index 7e1c8c3197..2604996eab 100644 --- a/crates/layout/src/tests.rs +++ b/crates/layout/src/tests.rs @@ -7620,6 +7620,7 @@ fn chart_text_the_font_lacks_is_drawn_in_a_fallback_face() { // #4720: a Chinese legend in a chart drawn in the body font (which has no Chinese) showed boxes. use wordcraft_doc::graphic::{Graphic, GraphicItem, GraphicKind, TextAlign}; use wordcraft_doc::props::Rgb; + crate::test_fonts(); if wordcraft_fonts::FontDb::global().fallback_for('销', 0).is_none() { eprintln!("skipped: no Chinese font installed"); return;