-
Notifications
You must be signed in to change notification settings - Fork 162
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
Set custom font for application #1711
Comments
@OmidAtaei1984 Why not use global CSS(wwwroot/app.css) to set |
Hello. As you can see in the picture, setting font-family in Body has no effect, but after setting Style in Program.cs, the desired font is applied. |
app.css: .m-application {
font-family: TheBlackList, ...
} |
@OmidAtaei1984 You should check the From your screenshot, it seems that the program did not restart successfully, causing app.css not to be reapplied. |
This issue is stale because it has been open for 4 days with no activity. |
This issue is closed because it has been open for 3 days with stale. |
Hello. good day. There is no guidance on the site regarding how to use web fonts, font-face and how to set the font for the application globally. It can be done for components such as mcontainer when adding the service, using the command:
options.Defaults = new Dictionary<string, IDictionary<string, object?>?>()
{
{ nameof(Mcontainer), new Dictionary<string, object?>() { { nameof(Mcontainer.Style), "font-family: ''CustomeFontName"} } },
}
The font can be set, but in components such as MCard, the above command must be added again for that component, or in "popupService.EnqueueSnackbarAsync", the displayed text font is independent of the set font.
The text was updated successfully, but these errors were encountered: