Plugin.Toolkit.Fonts.Inter
1.0.1
dotnet add package Plugin.Toolkit.Fonts.Inter --version 1.0.1
NuGet\Install-Package Plugin.Toolkit.Fonts.Inter -Version 1.0.1
<PackageReference Include="Plugin.Toolkit.Fonts.Inter" Version="1.0.1" />
<PackageVersion Include="Plugin.Toolkit.Fonts.Inter" Version="1.0.1" />
<PackageReference Include="Plugin.Toolkit.Fonts.Inter" />
paket add Plugin.Toolkit.Fonts.Inter --version 1.0.1
#r "nuget: Plugin.Toolkit.Fonts.Inter, 1.0.1"
#:package Plugin.Toolkit.Fonts.Inter@1.0.1
#addin nuget:?package=Plugin.Toolkit.Fonts.Inter&version=1.0.1
#tool nuget:?package=Plugin.Toolkit.Fonts.Inter&version=1.0.1
Plugin.Toolkit.Fonts.Inter
Effortlessly integrate the Inter font family into your .NET MAUI applications.
Inter, a popular geometric sans-serif typeface, offers a clean and modern aesthetic, supporting a wide range of languages.
This plugin simplifies the process of including the Inter font family in your .NET MAUI apps, eliminating the need for manual font embedding and registration. It provides pre-configured font resources that can be easily accessed and applied to your UI elements.
Key Features
- Easy integration with .NET MAUI projects.
- Includes various weights and styles of the Inter font (e.g., Regular, Bold, Italic, etc.).
- Optimized for performance in mobile and desktop environments.
- Cross-platform compatibility (iOS, Android, Windows, macOS).
- Example project demonstrating usage.
Installation
You can install the plugin via NuGet:
Install-Package Plugin.Toolkit.Fonts.Inter
Usage
Register the font:
In your
MauiProgram.cs
file:using Plugin.Toolkit.Fonts.Inter; public static class MauiProgram { public static MauiApp CreateMauiApp() { var builder = MauiApp.CreateBuilder(); builder .UseMauiApp<App>() .ConfigureFonts(fonts => { fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold"); fonts.AddInterFonts(); // <-- add this if using this font to global. using: FontFamily="Regular" (Italic, Medium, SemiBold, Bold, MediumItalic, SemiBoldItalic, BoldItalic) //fonts.AddInterFontsPartial(); // <-- add this if using this font as partial. using: FontFamily="InterRegular" (InterItalic, InterMedium, InterSemiBold, InterBold, InterMediumItalic, InterSemiBoldItalic, InterBoldItalic) }); return builder.Build(); } }
Use the font in XAML:
<Label Text="Hello Inter!" FontFamily="Regular" /> <Label Text="This is Bold Inter!" FontFamily="Bold" />
Or with Style:
<Style TargetType="Label" x:Key="InterLabelStyle"> <Setter Property="FontFamily" Value="SemiBold"/> </Style> <Label Text="Hello Inter with style!" Style="{StaticResource InterLabelStyle}"/>
Example Project
The repository includes a sample MAUI project demonstrating the usage of the plugin. You can find it in the samples
directory.
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
Contact
If you have any questions or suggestions, please feel free to contact me at andyapin@gmail.com
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-android34.0 is compatible. net8.0-browser was computed. net8.0-ios was computed. net8.0-ios18.0 is compatible. net8.0-maccatalyst was computed. net8.0-maccatalyst18.0 is compatible. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net8.0-windows10.0.19041 is compatible. net9.0 is compatible. net9.0-android was computed. net9.0-android35.0 is compatible. net9.0-browser was computed. net9.0-ios was computed. net9.0-ios18.0 is compatible. net9.0-maccatalyst was computed. net9.0-maccatalyst18.0 is compatible. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net9.0-windows10.0.19041 is compatible. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Microsoft.Maui.Controls (>= 8.0.100)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.100)
-
net8.0-android34.0
- Microsoft.Maui.Controls (>= 8.0.100)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.100)
-
net8.0-ios18.0
- Microsoft.Maui.Controls (>= 8.0.100)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.100)
-
net8.0-maccatalyst18.0
- Microsoft.Maui.Controls (>= 8.0.100)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.100)
-
net8.0-windows10.0.19041
- Microsoft.Maui.Controls (>= 8.0.100)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.100)
-
net9.0
- Microsoft.Maui.Controls (>= 9.0.51)
- Microsoft.Maui.Controls.Compatibility (>= 9.0.51)
-
net9.0-android35.0
- Microsoft.Maui.Controls (>= 9.0.51)
- Microsoft.Maui.Controls.Compatibility (>= 9.0.51)
-
net9.0-ios18.0
- Microsoft.Maui.Controls (>= 9.0.51)
- Microsoft.Maui.Controls.Compatibility (>= 9.0.51)
-
net9.0-maccatalyst18.0
- Microsoft.Maui.Controls (>= 9.0.51)
- Microsoft.Maui.Controls.Compatibility (>= 9.0.51)
-
net9.0-windows10.0.19041
- Microsoft.Maui.Controls (>= 9.0.51)
- Microsoft.Maui.Controls.Compatibility (>= 9.0.51)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.