-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Font Fallbacks not working and Not able to load custom font either #12099
Labels
Comments
Where do you reference |
FontFamily="fonts:Noto Sans SC#Noto Sans SC" |
Adding that like this worked https://github.com/TheMulhima/Scarab/blob/fc8069e443b283afbb0b1b8e9d4d9cf232cc72a7/Scarab/Program.cs#L26 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I'm trying to add Chinese font compatibility in my app but I'm not able to get it to work.
Initially there was a font problem and this was added which changed the default font and also add fall backs.
How it was done can be found here
https://github.com/TheMulhima/Scarab/blob/3821c180b9e838bc68e0cc8b288664e952098495/Scarab/Program.cs#L184-L213
However, if the user doesn't have the primary font installed, the app just crashes instead of trying a fall back font which does exist.
See TheMulhima/Lumafly#53
This is one of the issues I'm having with fonts
The other issue is I tried to add Noto Sans SC as a embedded font in my app (and set it as the primary font family) but whenever I open the app I get the error could not create glyph Typeface. I added the font as avalonia resource and in the configure fonts extension on app builder I added the font but it doesn't work. The code trying to add that is here
TheMulhima/Lumafly@ec4c6cd
Fixing either one of these issues would fix the underlying problem that is Chinese font isn't working. Thanks
Expected behavior
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: