Skip to content

felipefrg/MAUI_Glyphs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MAUI Glyphs

This project has the purpose of showing how to use custom fonts in MAUI

It was made using Visual Studio 2022 Version Version 17.9.0 and .NET 8

First step

Add your ttf/otf file inside the Resources -> Fonts folder and make sure that build action "Mauifonts" was selected (right-click -> properties -> build action)

App Screenshot

Second step

Go to MauiProgram.cs and add your ttf file and an alias for that in the builder, inside the ConfigureFonts method, like the sample below

.ConfigureFonts(fonts => { fonts.AddFont("icomoon.ttf", "icomoon"); }

App Screenshot

Third step

Use your custom font in the label specifying FontFamily property App Screenshot

Result

App Screenshot

About

This project has been made using MAUI and .NET8 and has the propose showing how to use custom fonts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages