-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Unable to load font 'monospace' #11422
Comments
Are you trying in a specific device or also emulators? |
Emulator for now |
Happening on Windows 10 as well: `Microsoft.Maui.FontRegistrar: Warning: Unable to load font 'Roboto'. System.IO.FileNotFoundException: Native font with the name Roboto-Black.tff was not found. |
Hi @tranb3r. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
This happens to the base .net MAUI 7 project. Add any font to the base fonts folder, add it to the MauiProgram.cs file and it fails. |
Here is a repro : https://github.com/tranb3r/Issues/tree/main/MauiAppFontMonospace |
Could you share the Exception StackTrace? |
Hi @tranb3r. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
@jsuarezruiz The stack trace is in the description of this issue. |
Description
I'm using the 'monospace' font in my xamarin forms app.
When migrating to maui, it looks like it does not work anymore
Steps to Reproduce
<Label FontFamily="monospace" Text="Hello world" />
Link to public reproduction project repository
...
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
...
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: