Interface IFontReader
Reads a font file and extracts family metadata, glyph metrics, and kerning pairs.
public interface IFontReader
Methods
ReadFont(ReadOnlySpan<byte>, int)
Reads a font file and returns its metadata, metrics, and kerning pairs.
FontInfo ReadFont(ReadOnlySpan<byte> fontData, int faceIndex = 0)
Parameters
fontDataReadOnlySpan<byte>The font file bytes (TTF, OTF, or WOFF).
faceIndexintWhich face to use in a .ttc font collection. Usually 0.