Table of Contents

Enum RasterizerBackend

Namespace
KernSmith
Assembly
KernSmith.dll

Which rasterizer backend to use for glyph rendering.

public enum RasterizerBackend

Fields

DirectWrite = 2

DirectWrite rasterizer. Windows-only, high quality.

FreeType = 0

FreeType rasterizer. Cross-platform, full-featured.

Gdi = 1

GDI rasterizer. Windows-only.

Native = 4

Native KernSmith rasterizer. Pure C#, cross-platform, no external dependencies.

Experimental, and not published to NuGet yet. The backend renders TrueType (glyf) outlines and is supplied by the KernSmith.Rasterizers.Native project, which currently ships only in the KernSmith repository and CLI. Until that package is released, Create(RasterizerBackend) throws for this value in apps built against the NuGet packages.

Limitations: TrueType outlines only — CFF/PostScript fonts (typically .otf) are rejected — plus no WOFF, hinting, SDF, outline stroking, synthetic bold/italic, variable fonts, color fonts, or system-font lookup, and only None and Grayscale anti-aliasing. Use FreeType or StbTrueType for those.

StbTrueType = 3

StbTrueType rasterizer. Pure C#, cross-platform. No native dependencies.