Telerik UI for .NET MAUI Font Icons
Telerik font icons represent a collection of small vector graphics used across the components from the Telerik UI for .NET MAUI suite. Examples of using font icons include the expand and collapse indicators of the Accordion, Expander, and TreeView controls, filter and sort indicators of the DataGrid control, and others.
This article provides an overview of how you can utilize the Telerik font icons in your .NET MAUI app.
Include the Font Icons File
-
The Telerik font icons are located in the
telerikcontrolsicons.ttf
andtelerikfontexamples.ttf
files. There are two options you could use to get the.ttf
file.- Download the
.ttf
files from Telerik UI for .NET MAUI Samples App GitHub repo. - Get the font file from the installation folder of Telerik UI for MAUI. This is the path to the exact location:
Telerik UI for .NET MAUI [version]\Examples\ControlsSamples\Resources\Fonts
- Download the
Add the font to your project by placing it in the
Resources/Fonts
folder.Register the Telerik font
.ttf
file into your .NET MAUI application inside theMauiProgram.cs
file:
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
fonts.AddFont("telerikcontrolsicons.ttf", "TelerikControlsIcons");
fonts.AddFont("telerikfontexamples.ttf", "TelerikFontExamples");
});