KernSmith.Rasterizers.FreeType 0.27.0

dotnet add package KernSmith.Rasterizers.FreeType --version 0.27.0
                    
NuGet\Install-Package KernSmith.Rasterizers.FreeType -Version 0.27.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="KernSmith.Rasterizers.FreeType" Version="0.27.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KernSmith.Rasterizers.FreeType" Version="0.27.0" />
                    
Directory.Packages.props
<PackageReference Include="KernSmith.Rasterizers.FreeType" />
                    
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 KernSmith.Rasterizers.FreeType --version 0.27.0
                    
#r "nuget: KernSmith.Rasterizers.FreeType, 0.27.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 KernSmith.Rasterizers.FreeType@0.27.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=KernSmith.Rasterizers.FreeType&version=0.27.0
                    
Install as a Cake Addin
#tool nuget:?package=KernSmith.Rasterizers.FreeType&version=0.27.0
                    
Install as a Cake Tool

KernSmith.Rasterizers.FreeType

A FreeType rasterizer backend for KernSmith.

Overview

This package provides a cross-platform rasterizer using FreeType. It supports color fonts (COLRv0/CPAL, sbix, CBDT), variable fonts, SDF rendering, and every anti-alias mode.

Platform: Cross-platform (net8.0, net10.0). Native FreeType binaries come from FreeTypeSharp:

  • Windows, Linux x64, macOS — supported.
  • Android — supported on arm64 and x86_64. The package's build//buildTransitive/ targets drop FreeTypeSharp's desktop Linux library from Android builds; without that (earlier package versions), NuGet's RID fallback packages it into the APK and x86_64 fails with DllNotFoundException.
  • iOS — unsupported. An iOS app that references this package fails to link, even if FreeType is never used: FreeTypeSharp 3.1.0's static iOS libfreetype.a references libpng symbols that nothing provides. Do not reference this package in iOS apps; use StbTrueType.
  • Linux arm64, Mac Catalyst, Blazor WASM — unsupported (FreeTypeSharp ships no native library); use StbTrueType.

In trimmed or AOT apps (e.g. Android Release), register the backend explicitly with RasterizerFactory.Register(RasterizerBackend.FreeType, () => new FreeTypeRasterizer()). See the platform support table.

Usage

Install the package and set the rasterizer backend:

dotnet add package KernSmith.Rasterizers.FreeType
var options = new FontGeneratorOptions
{
    Size = 32,
    Backend = RasterizerBackend.FreeType
};

The rasterizer auto-registers via [ModuleInitializer], so referencing the package is sufficient.

Build

dotnet build src/KernSmith.Rasterizers.FreeType/KernSmith.Rasterizers.FreeType.csproj

See the KernSmith repository for full project documentation.

Third-Party Licenses

This package uses FreeType (2.13.2, via FreeTypeSharp) under the FreeType License (FTL).

Portions of this software are copyright © 2023 The FreeType Project (www.freetype.org). All rights reserved.

See THIRD-PARTY-NOTICES.md (packaged at the package root) for the full license text.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  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.  net10.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on KernSmith.Rasterizers.FreeType:

Package Downloads
KernSmith.GumCommon

Bridges KernSmith bitmap font generation with Gum's BmfcSave font descriptor. Provides shared mapping logic used by platform-specific packages (KernSmith.MonoGameGum, KernSmith.KniGum, etc.) to generate fonts at runtime.

Gum.ProjectServices

Gum project services shared by the Gum tool and gumcli. Embeds AngelCode BMFont (bmfont.exe), which is under the zlib License; see BMFont-LICENSE.txt in the package.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on KernSmith.Rasterizers.FreeType:

Repository Stars
vchelaru/Gum
Flexible layout tool for creating UI on any platform
Version Downloads Last Updated
0.27.0 1,643 11/6/2026
0.26.0 104 11/2/2026
0.25.0 104 11/1/2026
0.24.0 9,535 10/18/2026
0.23.1 133 10/17/2026
0.23.0 1,247 10/14/2026
0.22.1 103 10/13/2026
0.22.0 213 9/10/2026
0.21.0 17,166 8/28/2026
0.20.0 1,715 8/5/2026
0.19.0 153 7/31/2026
0.18.2 15,341 7/28/2026
0.18.1 219 7/28/2026
0.18.0 151 7/27/2026
0.17.0 149 7/19/2026
0.16.0 4,150 7/12/2026
0.15.3 222 7/12/2026
0.15.2 290 6/29/2026
0.15.1 5,783 6/16/2026
0.15.0 1,098 6/7/2026
Loading failed