Table of Contents

Interface IRasterizerCapabilities

Namespace
KernSmith.Rasterizer
Assembly
KernSmith.dll

Describes what a rasterizer backend supports.

public interface IRasterizerCapabilities

Properties

HandlesOwnSizing

When true, the rasterizer handles font sizing internally and BmFont should pass the raw fontSize without cell-height-to-ppem conversion.

bool HandlesOwnSizing { get; }

Property Value

bool

SupportedAntiAliasModes

The anti-alias modes this rasterizer supports. The generation pipeline never hands the rasterizer a mode missing from this list, except None: an unlisted Light or Lcd request arrives as Grayscale when that is listed.

IReadOnlyList<AntiAliasMode> SupportedAntiAliasModes { get; }

Property Value

IReadOnlyList<AntiAliasMode>

SupportsColorFonts

Whether the rasterizer can render color font glyphs (COLR/CPAL/sbix/CBDT).

bool SupportsColorFonts { get; }

Property Value

bool

SupportsItalicAngle

When true, the rasterizer slants synthetic italic by ItalicAngle rather than an angle of its own.

bool SupportsItalicAngle { get; }

Property Value

bool

SupportsMsdf

When true, the rasterizer can render multi-channel distance fields (Msdf and Mtsdf) as RGBA glyphs.

bool SupportsMsdf { get; }

Property Value

bool

SupportsOutlineStroke

Whether the rasterizer draws outline layers itself: true means it implements RasterizeOutlineLayer(int, RasterOptions, int, OutlineShape, float), which the pipeline then uses for Vector outlines. False keeps the pipeline's bitmap outline.

bool SupportsOutlineStroke { get; }

Property Value

bool

SupportsSdf

Whether the rasterizer can produce signed distance field output.

bool SupportsSdf { get; }

Property Value

bool

SupportsSyntheticBold

When true, the rasterizer can apply synthetic bold (emboldening) to glyph outlines.

bool SupportsSyntheticBold { get; }

Property Value

bool

SupportsSyntheticItalic

When true, the rasterizer can apply synthetic italic (oblique/shear) to glyph outlines.

bool SupportsSyntheticItalic { get; }

Property Value

bool

SupportsSystemFonts

When true, the rasterizer can load system-installed fonts by family name via LoadSystemFont(string) instead of requiring font bytes.

bool SupportsSystemFonts { get; }

Property Value

bool

SupportsVariableFonts

Whether the rasterizer can apply variable font axis coordinates.

bool SupportsVariableFonts { get; }

Property Value

bool

SupportsWidthScale

When true, the rasterizer honors WidthPercent (synthetic condensed/expanded outlines and advances).

bool SupportsWidthScale { get; }

Property Value

bool