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

face harfbuzz.face.Face

a face.

Return Value

Type: harfbuzz.font.Font

The new font object