Table of Contents

Class DefaultSystemFontProvider

Namespace
KernSmith.Font
Assembly
KernSmith.dll

Default implementation of ISystemFontProvider that scans platform-specific font directories and uses KernSmith.Font.TtfParser to extract font metadata.

public sealed class DefaultSystemFontProvider : ISystemFontProvider
Inheritance
DefaultSystemFontProvider
Implements
Inherited Members

Methods

GetInstalledFonts()

Returns a list of all installed fonts discovered on the system.

public IReadOnlyList<SystemFontInfo> GetInstalledFonts()

Returns

IReadOnlyList<SystemFontInfo>

LoadFont(string, string?)

Loads the raw font file bytes for the specified font family.

public FontLoadResult? LoadFont(string familyName, string? styleName = null)

Parameters

familyName string

The font family name to search for (case-insensitive).

styleName string

Optional style name to match (e.g., "Bold"). If null, prefers "Regular".

Returns

FontLoadResult

The font data and TTC face index, or null if no matching font was found.