create


Description:

[ Version ( since = "0.9.2" ) ]
public static Font create (Face face)

Constructs a new font object from the specified face.

<note>Note: If face's index value (as passed to create has non-zero top 16-bits, those bits minus one are passed to set_var_named_instance, 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

a face.

Returns:

The new font object