openTrueType

Opens one owner-thread TrueType face for the supplied settings. A failed open must release every partially allocated face resource before propagating the failure.

Return

a new face owned and closed by the caller.

Parameters

bytes

caller-owned font bytes that must be copied if retained.

settings

immutable provider rasterization settings.

Throws

when the font cannot be opened.