Table of Contents

Interface ISystemFontProvider

Namespace
KernSmith.Font
Assembly
KernSmith.dll

Provides discovery and loading of fonts installed on the system.

public interface ISystemFontProvider

Methods

GetInstalledFonts()

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

IReadOnlyList<SystemFontInfo> GetInstalledFonts()

Returns

IReadOnlyList<SystemFontInfo>

LoadFont(string, string?)

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

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.