diff options
Diffstat (limited to 'graphics')
| -rw-r--r-- | graphics/src/text.rs | 9 | 
1 files changed, 4 insertions, 5 deletions
diff --git a/graphics/src/text.rs b/graphics/src/text.rs index 280e4f01..b4aeb2be 100644 --- a/graphics/src/text.rs +++ b/graphics/src/text.rs @@ -21,12 +21,11 @@ pub fn font_system() -> &'static RwLock<FontSystem> {      FONT_SYSTEM.get_or_init(|| {          RwLock::new(FontSystem { -            raw: cosmic_text::FontSystem::new_with_fonts( -                [cosmic_text::fontdb::Source::Binary(Arc::new( +            raw: cosmic_text::FontSystem::new_with_fonts([ +                cosmic_text::fontdb::Source::Binary(Arc::new(                      include_bytes!("../fonts/Iced-Icons.ttf").as_slice(), -                ))] -                .into_iter(), -            ), +                )), +            ]),              version: Version::default(),          })      })  | 
