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 <noreply@anthropic.com>
This commit is contained in:
vangel76
2026-11-07 18:24:08 +01:00
co-authored by Claude Sonnet 5.5
parent d98a335ae8
commit f1b5f0b4de
+1
View File
@@ -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;