Enum RasterizerBackend
- Namespace
- KernSmith
- Assembly
- KernSmith.dll
Which rasterizer backend to use for glyph rendering.
public enum RasterizerBackend
Fields
DirectWrite = 2DirectWrite rasterizer. Windows-only, high quality.
FreeType = 0FreeType rasterizer. Cross-platform, full-featured.
Gdi = 1GDI rasterizer. Windows-only.
Native = 4Native 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 theKernSmith.Rasterizers.Nativeproject, 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 = 3StbTrueType rasterizer. Pure C#, cross-platform. No native dependencies.