IconFont.Maui.FluentIcons
1.1.0
dotnet add package IconFont.Maui.FluentIcons --version 1.1.0
NuGet\Install-Package IconFont.Maui.FluentIcons -Version 1.1.0
<PackageReference Include="IconFont.Maui.FluentIcons" Version="1.1.0" />
<PackageVersion Include="IconFont.Maui.FluentIcons" Version="1.1.0" />
<PackageReference Include="IconFont.Maui.FluentIcons" />
paket add IconFont.Maui.FluentIcons --version 1.1.0
#r "nuget: IconFont.Maui.FluentIcons, 1.1.0"
#:package IconFont.Maui.FluentIcons@1.1.0
#addin nuget:?package=IconFont.Maui.FluentIcons&version=1.1.0
#tool nuget:?package=IconFont.Maui.FluentIcons&version=1.1.0
IconFont.Maui.FluentIcons
IconFont.Maui.FluentIcons ships all four Fluent UI System Icons TTF icon fonts for .NET MAUI:
| Font | File | Class |
|---|---|---|
| Regular | FluentSystemIcons-Regular.ttf |
FluentIconsRegular |
| Filled | FluentSystemIcons-Filled.ttf |
FluentIconsFilled |
| Light | FluentSystemIcons-Light.ttf |
FluentIconsLight |
| Resizable | FluentSystemIcons-Resizable.ttf |
FluentIconsResizable |
It registers the fonts across supported targets when you call UseFluentIcons() (or individual helpers) and exposes strongly-typed glyph constants to simplify XAML and C# usage.
✨ Features
- ⚙️ One-line setup: call
builder.UseFluentIcons()to register all fonts, or per-font helpers likeUseFluentIconsRegular(),UseFluentIconsFilled(), etc. - 🔤 Strongly-typed glyphs via flat classes:
FluentIconsRegular.Add24,FluentIconsFilled.Home24, etc. - 🧰 Helper APIs:
FluentIcons.Create()forFontImageSource - 📱 Supported targets: Android, iOS, Mac Catalyst, Windows
📦 Install
dotnet add package IconFont.Maui.FluentIcons
🚀 Getting Started
Register
var builder = MauiApp.CreateBuilder()
.UseMauiApp<App>()
.UseFluentIcons(); // registers all four font styles
Or register individual fonts:
builder.UseFluentIconsRegular(); // Regular only
builder.UseFluentIconsFilled(); // Filled only
builder.UseFluentIconsLight(); // Light only
builder.UseFluentIconsResizable(); // Resizable only
XAML usage
xmlns:icons="clr-namespace:IconFont.Maui.FluentIcons;assembly=IconFont.Maui.FluentIcons"
<FontImageSource Glyph="{x:Static icons:FluentIconsRegular.Add24}"
FontFamily="{x:Static icons:FluentIconsRegular.FontFamily}"
Color="#2563EB"
Size="32" />
C# usage
using IconFont.Maui.FluentIcons;
// Create a FontImageSource for any glyph
var source = FluentIcons.Create(FluentIconsRegular.Add24, Colors.Orange, 32);
Tip: Glyph names follow the upstream font. If the font adds/changes glyphs, updating the font file and rebuilding regenerates this API.
📋 Styles & Glyphs
The source generator emits flat top-level classes for XAML {x:Static} compatibility:
| Class | Example |
|---|---|
FluentIconsRegular |
FluentIconsRegular.Add24 |
FluentIconsFilled |
FluentIconsFilled.Home24 |
FluentIconsLight |
FluentIconsLight.Star24 |
FluentIconsResizable |
FluentIconsResizable.Add20 |
🧩 Platforms
| Platform | Minimum |
|---|---|
| Android | 21+ |
| iOS | 15+ |
| macOS | 12+ |
| Windows | 10 1809 |
📄 License
- Library: MIT
- Font: MIT (see license)
🙏 Attribution
- Upstream font: MIT © Microsoft Corporation
- This project is not affiliated with or endorsed by Microsoft.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-android36.0 is compatible. net10.0-ios26.0 is compatible. net10.0-maccatalyst26.0 is compatible. |
-
net10.0-android36.0
- Microsoft.Maui.Controls (>= 10.0.20)
-
net10.0-ios26.0
- Microsoft.Maui.Controls (>= 10.0.20)
-
net10.0-maccatalyst26.0
- Microsoft.Maui.Controls (>= 10.0.20)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.