ft_face_create_cached


Description:


[ Version ( since = "0.9.2" ) ]
public Face ft_face_create_cached (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 caches the newly created Face face object, using the generic pointer of ft_face. Subsequent function calls that are passed the same ft_face parameter will have the same Face returned to them, and that Face will be correctly reference counted.

However, client programs are still responsible for destroying ft_face after the last Face face object has been destroyed.

Parameters:

ft_face

FT_Face to work upon

Returns:

the new Face face object


Namespace: HarfBuzz