A small .NET MAUI sample that accompanies the Grial blog post Deep Dive: How to Integrate Google Fonts in .NET MAUI. The project demonstrates how to include and register custom fonts in a MAUI app and contains example font files under Resources/Fonts.
This repository shows a minimal workflow for adding and using custom fonts with .NET MAUI:
- Add font files to
Resources/Fonts/. - Register fonts in the project (either in the csproj as
<MauiFont>entries, or via the sharedFonts.xaml/styles). - Use the registered font aliases in XAML or C# styles.
Resources/Fonts/— bundled font files.Resources/Styles/Fonts.xaml— where shared font styles may live.
This repository includes a top-level LICENSE file. Check it for terms governing use and redistribution.
This project uses the following fonts:
Both fonts are provided by Google Fonts and are distributed under the SIL Open Font License, Version 1.1.
Copies of the licenses are included in the source/blog.fonts/Resources/Fonts/Licenses/ directory.