-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fallback to embedded font when system font is unsupported #74
Conversation
I just ran into this issue trying to run the examples, found this PR, switched to this branch and recompiled. Still getting a panic. |
@safijari Thanks for testing it! Could you share a backtrace? |
When I run
|
Hey @safijari, thanks for reporting back. Your issue is not related to font loading. It seems My advice is to check that your Vulkan drivers are installed correctly. I am also working on a renderer alternative that should be able to fallback to software mode in this cases. |
Fixes #69.
This PR embeds Lato in
iced_wgpu
and uses it when the default system fonts cannot be handled byrusttype
. This is a dirty fix and should increase binary size a bit. It's meant to be a workaround while we move the text pipeline iniced_wgpu
to something that offers more support (see #33).Additionally, the PR also removes the loading of a monospace font, reducing memory footprint. We can use the default font instead for the debug/overlay view.