We can use Application::font to load fonts in normal iced projects. But in an integration project, we do not create an Application .
I’ve tried iced::font::load(FONT_BYTES). It didn’t work.
We can use Application::font to load fonts in normal iced projects. But in an integration project, we do not create an Application .
I’ve tried iced::font::load(FONT_BYTES). It didn’t work.
Okay, I found the answer.
iced_wgpu::graphics::text::font_system().write().unwrap().load_font(std::borrow::Borrowed(FONT_BYTES));
The above code works, just not sure if it’s the best practice.