KernSmith.Rasterizers.DirectWrite.TerraFX 0.10.3

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

KernSmith.Rasterizers.DirectWrite.TerraFX

A DirectWrite rasterizer backend for KernSmith using TerraFX.Interop.Windows.

Overview

This package provides an alternative rasterizer that uses Windows DirectWrite APIs (via TerraFX interop bindings) instead of FreeType. It supports color fonts and variable fonts with native Windows text rendering quality.

Platform: Windows only (net10.0-windows).

Usage

Install the package and set the rasterizer backend:

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

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

Build

dotnet build src/KernSmith.Rasterizers.DirectWrite.TerraFX/KernSmith.Rasterizers.DirectWrite.TerraFX.csproj

See the KernSmith repository for full project documentation.

Product Compatible and additional computed target framework versions.
.NET net10.0-windows7.0 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
0.10.3 0 3/31/2026
0.10.2 32 3/29/2026
0.10.1 33 3/29/2026