From cafd969567c8c5bb429f2e9516f5f0ea339ff763 Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Wed, 14 Oct 2026 00:07:46 +0200 Subject: [PATCH] fix(app): build the fontconfig face helper only where it is used Windows and macOS find their CJK font by path, so on those targets the helper was dead code and the Windows cross gate refused it. --- crates/pstr-app/src/theme.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/pstr-app/src/theme.rs b/crates/pstr-app/src/theme.rs index a595d94..9a83a63 100644 --- a/crates/pstr-app/src/theme.rs +++ b/crates/pstr-app/src/theme.rs @@ -277,6 +277,7 @@ fn cjk_font_data(bytes: Vec, index: u32) -> Option { /// Fedora's variable Noto Sans CJK answers 262144, instance 4 of face 0. The /// instance is not a face, and passing it to egui as one stopped the app at /// start. +#[cfg(any(target_os = "linux", test))] fn fontconfig_face(index: u32) -> u32 { index & 0xFFFF }