Interface ISystemFontProvider
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
LoadFont(string, string?)
Loads the raw font file bytes for the specified font family.
FontLoadResult? LoadFont(string familyName, string? styleName = null)
Parameters
familyNamestringThe font family name to search for (case-insensitive).
styleNamestringOptional 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.