create_for_tables


Description:

[ Version ( since = "0.9.2" ) ]
public static Face create_for_tables (owned ReferenceTableFunc reference_table_func)

Variant of create, built for those cases where it is more convenient to provide data for individual tables instead of the whole font data.

With the caveat that get_table_tags would not work with faces created this way. You can address that by calling the hb_face_set_get_table_tags_func function and setting the appropriate callback.

Creates a new face object from the specified user_data and reference_table_func, with the destroy callback.

Parameters:

reference_table_func

Table-referencing function

destroy

A callback to call when data is not needed anymore

user_data

A pointer to the user data

Returns:

The new face object