Plugin.Toolkit.Fonts.Poppins 1.0.0

dotnet add package Plugin.Toolkit.Fonts.Poppins --version 1.0.0                
NuGet\Install-Package Plugin.Toolkit.Fonts.Poppins -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="Plugin.Toolkit.Fonts.Poppins" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Plugin.Toolkit.Fonts.Poppins --version 1.0.0                
#r "nuget: Plugin.Toolkit.Fonts.Poppins, 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.
// Install Plugin.Toolkit.Fonts.Poppins as a Cake Addin
#addin nuget:?package=Plugin.Toolkit.Fonts.Poppins&version=1.0.0

// Install Plugin.Toolkit.Fonts.Poppins as a Cake Tool
#tool nuget:?package=Plugin.Toolkit.Fonts.Poppins&version=1.0.0                

Plugin.Toolkit.Fonts.Poppins

Effortlessly integrate the Poppins font family into your .NET MAUI applications.

Poppins, 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 Poppins 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 Poppins 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.Poppins

Usage

  1. Register the font:

    In your MauiProgram.cs file:

    using Plugin.Toolkit.Fonts.Poppins;
    
    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.AddPoppinsFonts(); // <-- add this
                });
    
            return builder.Build();
        }
    }
    
  2. Use the font in XAML:

    <Label Text="Hello Poppins!" FontFamily="Regular" />
    <Label Text="This is Bold Poppins!" FontFamily="Bold" />
    

    Or with Style:

    <Style TargetType="Label" x:Key="PoppinsLabelStyle">
        <Setter Property="FontFamily" Value="SemiBold"/>
    </Style>
    
    <Label Text="Hello Poppins with style!" Style="{StaticResource PoppinsLabelStyle}"/>
    

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.

Product 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 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
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 103 12/17/2024