Table of Contents

Interface IFontReader

Namespace
KernSmith.Font
Assembly
KernSmith.dll

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

fontData ReadOnlySpan<byte>

The font file bytes (TTF, OTF, or WOFF).

faceIndex int

Which face to use in a .ttc font collection. Usually 0.

Returns

FontInfo