mirror of
https://github.com/narrrl/proton-stream.git
synced 2026-11-03 16:41:26 +01:00
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.
This commit is contained in:
1 parent
69981e3b45
commit
cafd969567
1 file changed
+1
@@ -277,6 +277,7 @@ fn cjk_font_data(bytes: Vec<u8>, index: u32) -> Option<egui::FontData> {
|
||||
/// 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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user