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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="HandKit.Maui.Inter" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HandKit.Maui.Inter" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="HandKit.Maui.Inter" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add HandKit.Maui.Inter --version 1.0.0
                    
#r "nuget: HandKit.Maui.Inter, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package HandKit.Maui.Inter@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=HandKit.Maui.Inter&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=HandKit.Maui.Inter&version=1.0.0
                    
Install as a Cake Tool

HandKit.Maui.Inter

icon

NuGet Version License Platform

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:

  • Regular
  • Italic
  • Medium
  • MediumItalic
  • SemiBold
  • SemiBoldItalic
  • Bold
  • BoldItalic

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:

  • InterRegular
  • InterItalic
  • InterMedium
  • ...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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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