From 56142af888730e315b17a2f4a9ceb638f793b3be Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Wed, 11 Nov 2026 20:54:53 +0000 Subject: [PATCH] Fonts: the budget test starts after the first scan --- crates/text/src/fontdb.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/text/src/fontdb.rs b/crates/text/src/fontdb.rs index bad992e51..12d27bd11 100644 --- a/crates/text/src/fontdb.rs +++ b/crates/text/src/fontdb.rs @@ -196,6 +196,8 @@ mod alias_tests { #[test] fn the_file_search_for_uncovered_characters_stops_at_its_budget() { let db = FontDb::with_font_dirs(vec![]); + // The first search scans the font folders, which starts the count again. + db.system_fallback('\u{E001}'); db.sys.lock().unwrap().file_searches = names::MAX_FILE_SEARCHES; assert!(!db.system_fallback('\u{E000}')); let sys = db.sys.lock().unwrap();