HandKit.Maui.Inter
1.0.0
dotnet add package HandKit.Maui.Inter --version 1.0.0
NuGet\Install-Package HandKit.Maui.Inter -Version 1.0.0
<PackageReference Include="HandKit.Maui.Inter" Version="1.0.0" />
<PackageVersion Include="HandKit.Maui.Inter" Version="1.0.0" />
<PackageReference Include="HandKit.Maui.Inter" />
paket add HandKit.Maui.Inter --version 1.0.0
#r "nuget: HandKit.Maui.Inter, 1.0.0"
#:package HandKit.Maui.Inter@1.0.0
#addin nuget:?package=HandKit.Maui.Inter&version=1.0.0
#tool nuget:?package=HandKit.Maui.Inter&version=1.0.0
HandKit.Maui.Inter
Effortlessly integrate the Inter font family into your .NET MAUI applications.
Inter is a typeface carefully crafted & designed for computer screens. It features a tall x-height to aid in readability of mixed-case and lower-case text.
This library simplifies the process of including the Inter font family in your .NET MAUI apps, providing pre-configured font aliases and automatic resource inclusion.
Features
- Easy Integration: Add Inter fonts with a single line of code.
- Multiple Weights: Includes Regular, Medium, SemiBold, and Bold weights.
- Italic Styles: Includes Italic variants for all supported weights.
- Customizable Alias: Option to prefix font aliases to avoid conflicts.
- Cross-Platform: Works on Android, iOS, macOS, and Windows.
Installation
Install the package via NuGet:
dotnet add package HandKit.Maui.Inter
Or via the Package Manager Console:
Install-Package HandKit.Maui.Inter
Usage
1. Initialize the Plugin
In your MauiProgram.cs, add the UseInterFonts method to your MauiAppBuilder:
using HandKit.Maui.Inter; // Add this namespace
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.UseInterFonts(); // Registers the fonts with default aliases
return builder.Build();
}
}
2. Use Fonts in XAML
By default, the fonts are registered with the following aliases:
RegularItalicMediumMediumItalicSemiBoldSemiBoldItalicBoldBoldItalic
Example usage in XAML:
<StackLayout Spacing="10" Padding="20">
<Label Text="Regular Text (Inter)" FontFamily="Regular" FontSize="16"/>
<Label Text="Medium Text (Inter)" FontFamily="Medium" FontSize="16"/>
<Label Text="SemiBold Text (Inter)" FontFamily="SemiBold" FontSize="16"/>
<Label Text="Bold Text (Inter)" FontFamily="Bold" FontSize="16"/>
<Label Text="Italic Text (Inter)" FontFamily="Italic" FontSize="16"/>
</StackLayout>
Advanced Usage: Custom Alias Prefix
If you have meaningful font name conflicts (e.g., you already have a font aliased as "Regular"), you can provide a custom prefix:
// In MauiProgram.cs
builder.UseInterFonts("Inter");
This will change the registered aliases to:
InterRegularInterItalicInterMedium- ...and so on.
Updated usage in XAML:
<Label Text="Hello Inter!" FontFamily="InterRegular" />
<Label Text="Bold Inter!" FontFamily="InterBold" />
Included Fonts
The package includes the following font files from the Inter family:
- Regular:
Inter-Regular.ttf - Italic:
Inter-Italic.ttf - Medium:
Inter-Medium.ttf - Medium Italic:
Inter-MediumItalic.ttf - SemiBold:
Inter-SemiBold.ttf - SemiBold Italic:
Inter-SemiBoldItalic.ttf - Bold:
Inter-Bold.ttf - Bold Italic:
Inter-BoldItalic.ttf
License
This project is licensed under the MIT License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-android36.0 is compatible. net10.0-browser was computed. net10.0-ios was computed. net10.0-ios26.0 is compatible. net10.0-maccatalyst was computed. net10.0-maccatalyst26.0 is compatible. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net10.0-windows10.0.19041 is compatible. |
-
net10.0
- Microsoft.Maui.Controls (>= 10.0.20)
-
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)
-
net10.0-windows10.0.19041
- 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.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 104 | 2/20/2026 |