Parse(ReadOnlyMemory, FontProgramContext) Method

Definition

Parses a font program.

public FontProgram? Parse(ReadOnlyMemory<byte> data, FontProgramContext context)

Parameters

data
ReadOnlyMemory<Byte>

The decoded font program; the returned program may keep a reference to it.

context
FontProgramContext

Where the program comes from, the limits, and the diagnostics sink.

Returns

FontProgram
The program, or null when nothing in the bytes is usable.