Browse Source

app: enable system fonts so even weird glyphs from foreign languages render properly

darkfi 3 days ago
parent
commit
94e1b91c64
2 changed files with 2 additions and 2 deletions
  1. 1 1
      bin/app/src/prop/mod.rs
  2. 1 1
      bin/app/src/text/mod.rs

+ 1 - 1
bin/app/src/prop/mod.rs

@@ -74,7 +74,7 @@ pub enum PropertySubType {
     Pixel = 2,
     Pixel = 2,
     ResourceId = 3,
     ResourceId = 3,
     Locale = 4,
     Locale = 4,
-    Flag = 5
+    Flag = 5,
 }
 }
 
 
 #[derive(Debug, Copy, Clone, PartialEq)]
 #[derive(Debug, Copy, Clone, PartialEq)]

+ 1 - 1
bin/app/src/text/mod.rs

@@ -38,7 +38,7 @@ pub use render::{
 
 
 pub static GLOBAL_FONT_CTX: LazyLock<parley::FontContext> = LazyLock::new(|| {
 pub static GLOBAL_FONT_CTX: LazyLock<parley::FontContext> = LazyLock::new(|| {
     let mut font_ctx = parley::FontContext {
     let mut font_ctx = parley::FontContext {
-        collection: Collection::new(CollectionOptions { shared: true, system_fonts: false }),
+        collection: Collection::new(CollectionOptions { shared: true, system_fonts: true }),
         source_cache: SourceCache::new(SourceCacheOptions { shared: true }),
         source_cache: SourceCache::new(SourceCacheOptions { shared: true }),
     };
     };