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
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
SupportsColorFonts
Whether the rasterizer can render color font glyphs (COLR/CPAL/sbix/CBDT).
bool SupportsColorFonts { get; }
Property Value
SupportsItalicAngle
When true, the rasterizer slants synthetic italic by ItalicAngle rather than an angle of its own.
bool SupportsItalicAngle { get; }
Property Value
SupportsMsdf
bool SupportsMsdf { get; }
Property Value
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
SupportsSdf
Whether the rasterizer can produce signed distance field output.
bool SupportsSdf { get; }
Property Value
SupportsSyntheticBold
When true, the rasterizer can apply synthetic bold (emboldening) to glyph outlines.
bool SupportsSyntheticBold { get; }
Property Value
SupportsSyntheticItalic
When true, the rasterizer can apply synthetic italic (oblique/shear) to glyph outlines.
bool SupportsSyntheticItalic { get; }
Property Value
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
SupportsVariableFonts
Whether the rasterizer can apply variable font axis coordinates.
bool SupportsVariableFonts { get; }
Property Value
SupportsWidthScale
When true, the rasterizer honors WidthPercent (synthetic condensed/expanded outlines and advances).
bool SupportsWidthScale { get; }