fontCreate

Constructs a new font object from the specified face.

<note>

Note

If face's index value (as passed to [harfbuzz.global.faceCreate]

has non-zero top 16-bits, those bits minus one are passed to [harfbuzz.global.fontSetVarNamedInstance], effectively loading a named-instance of a variable font, instead of the default-instance. This allows specifying which named-instance to load by default when creating the face.</note>

Parameters

facea face.

Returns

The new font object