ft_font_create


Description:


[ Version ( since = "0.9.2" ) ]
public Font ft_font_create (Face ft_face)

Creates an Font font object from the specified FT_Face.

<note>Note: You must set the face size on ft_face before calling ft_font_create on it. HarfBuzz assumes size is always set and will access `size` member of FT_Face unconditionally.</note>

This variant of the function does not provide any life-cycle management.

Most client programs should use ft_font_create_referenced instead.

If you know you have valid reasons not to use ft_font_create_referenced , then it is the client program's responsibility to destroy ft_face after the Font font object has been destroyed.

HarfBuzz will use the destroy callback on the Font font object if it is supplied when you use this function. However, even if destroy is provided, it is the client program's responsibility to destroy ft_face, and it is the client program's responsibility to ensure that ft_face is destroyed only after the Font font object has been destroyed.

Parameters:

ft_face

FT_Face to work upon

destroy

A callback to call when the font object is not needed anymore

Returns:

the new Font font object


Namespace: HarfBuzz