Class DefaultSystemFontProvider
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
LoadFont(string, string?)
Loads the raw font file bytes for the specified font family.
public 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.