ft_face_create


Description:


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

Creates an Face face object from the specified FT_Face.

Note that this is using the FT_Face object just to get at the underlying font data, and fonts created from the returned Face will use the native HarfBuzz font implementation, unless you call ft_font_set_funcs on them.

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

Most client programs should use ft_face_create_referenced (or, perhaps, ft_face_create_cached) instead.

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

Parameters:

ft_face

FT_Face to work upon

destroy

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

Returns:

the new Face face object


Namespace: HarfBuzz