Face
Object Hierarchy:
Description:
[ CCode ( cname = "hb_face_t" , copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "hb_gobject_face_get_type ()" ) ]
[ Compact ]
[ GIR ( name = "face_t" ) ]
public class Face
Data type for holding font faces.
Content:
Static methods:
- public static Face builder_create ()
- public static uint count (Blob blob)
Fetches the number of faces in a blob.
- public static Face create (Blob blob, uint index)
Constructs a new face object from the specified blob and a face index
into that blob.
- 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.
- public static Face get_empty ()
Fetches the singleton empty face object.
Methods:
- public Bool builder_add_table (Tag tag, Blob blob)
Add table for tag with data provided by blob
to the face.
- public void collect_unicodes (Set @out)
Collects all of the Unicode characters covered by face
and adds them to the Set set out.
- public void collect_variation_selectors (Set @out)
Collects all Unicode "Variation Selector" characters covered by
face and adds them to the Set set out.
- public void collect_variation_unicodes (Codepoint variation_selector, Set @out)
Collects all Unicode characters for variation_selector
covered by face and adds them to the Set set out.
- public uint get_glyph_count ()
Fetches the glyph-count value of the specified face object.
- public uint get_index ()
Fetches the face-index corresponding to the given face.
- public uint get_table_tags (uint start_offset, out Tag[] table_tags)
Fetches a list of all table tags for a face, if possible.
- public uint get_upem ()
Fetches the units-per-em (UPEM) value of the specified face object.
- public Bool is_immutable ()
Tests whether the given face object is immutable.
- public void make_immutable ()
Makes the given face object immutable.
- public Blob reference_blob ()
Fetches a pointer to the binary blob that contains the specified face.
- public Blob reference_table (Tag tag)
Fetches a reference to the specified table within the specified face.
- public void set_glyph_count (uint glyph_count)
Sets the glyph count for a face object to the specified value.
- public void set_index (uint index)
Assigns the specified face-index to face.
- public void set_upem (uint upem)
Sets the units-per-em (upem) for a face object to the specified value.