From 6fb31ac135c554f64707aec519f190f707ff6281 Mon Sep 17 00:00:00 2001 From: Raphael Amorim Date: Sat, 25 Apr 2026 16:41:11 +0200 Subject: [PATCH] fix cfg for windows --- sugarloaf/src/font/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sugarloaf/src/font/mod.rs b/sugarloaf/src/font/mod.rs index a4053e4b..a3d96c12 100644 --- a/sugarloaf/src/font/mod.rs +++ b/sugarloaf/src/font/mod.rs @@ -1360,7 +1360,10 @@ impl FontData { /// `face_index` lets us address fonts inside a TTC/OTC collection /// (Noto Sans CJK ships as a single .ttc with separate faces for /// SC/TC/JP/KR — fontconfig returns the right index per language tag). - #[cfg(all(unix, not(target_os = "macos"), not(target_os = "android")))] + #[cfg(any( + all(unix, not(target_os = "macos"), not(target_os = "android")), + target_os = "windows" + ))] pub fn from_discovered_path( path: PathBuf, face_index: u32, -- 2.54.0