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
[ Compact ]
[ GIR ( name = "face_t" ) ]
public class Face
Data type for holding font faces.
Namespace: HarfBuzz
Package: harfbuzz-gobject
Content:
Static methods:
- public static Face builder_create ()
Creates a Face that can be used with builder_add_table.
- 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
tagwith data provided byblobto the face. - public void builder_sort_tables (Tag[] tags)
Set the ordering of tables for serialization.
- public void collect_nominal_glyph_mapping (out unowned Map mapping, out unowned Set? unicodes)
Collects the mapping from Unicode characters to nominal glyphs of the
face, and optionally all of the Unicode characters covered byface. - public void collect_unicodes (out unowned Set @out)
Collects all of the Unicode characters covered by
faceand adds them to the Set setout. - public void collect_variation_selectors (out unowned Set @out)
Collects all Unicode "Variation Selector" characters covered by
faceand adds them to the Set setout. - public void collect_variation_unicodes (Codepoint variation_selector, out unowned Set @out)
Collects all Unicode characters for
variation_selectorcovered byfaceand adds them to the Set setout. - 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.