- public void add_glyph_origin_for_direction (Codepoint glyph, Direction direction, out Position x, out Position y)
Adds the origin coordinates to an (X,Y) point coordinate, in the
specified glyph ID in the specified font.
- public Font create_sub_font ()
Constructs a sub-font font object from the specified parent
font, replicating the parent's properties.
- public FontExtents get_extents_for_direction (Direction direction)
Fetches the extents for a font in a text segment of the specified
direction.
- public unowned Face get_face ()
Fetches the face associated with the specified font object.
- public Bool get_glyph (Codepoint unicode, Codepoint variation_selector, out Codepoint glyph)
Fetches the glyph ID for a Unicode code point in the specified font,
with an optional variation selector.
- public void get_glyph_advance_for_direction (Codepoint glyph, Direction direction, out Position x, out Position y)
Fetches the advance for a glyph ID from the specified font, in a text
segment of the specified direction.
- public void get_glyph_advances_for_direction (Direction direction, uint count, Codepoint first_glyph, uint glyph_stride, Position first_advance, uint advance_stride)
Fetches the advances for a sequence of glyph IDs in the specified
font, in a text segment of the specified direction.
- public Bool get_glyph_contour_point (Codepoint glyph, uint point_index, out Position x, out Position y)
Fetches the (x,y) coordinates of a specified contour-point index in
the specified glyph, within the specified font.
- public Bool get_glyph_contour_point_for_origin (Codepoint glyph, uint point_index, Direction direction, out Position x, out Position y)
Fetches the (X,Y) coordinates of a specified contour-point index in
the specified glyph ID in the specified font, with respect to the origin in a text segment in the specified direction.
- public Bool get_glyph_extents (Codepoint glyph, out GlyphExtents extents)
Fetches the
GlyphExtents data for a glyph ID in the specified font.
- public Bool get_glyph_extents_for_origin (Codepoint glyph, Direction direction, out GlyphExtents extents)
Fetches the
GlyphExtents data for a glyph ID in the specified font, with respect to the origin in a text segment in the specified direction.
- public Bool get_glyph_from_name (char[] name, out Codepoint glyph)
Fetches the glyph ID that corresponds to a name string in the
specified font.
- public Position get_glyph_h_advance (Codepoint glyph)
Fetches the advance for a glyph ID in the specified font, for
horizontal text segments.
- public void get_glyph_h_advances (uint count, Codepoint first_glyph, uint glyph_stride, Position first_advance, uint advance_stride)
Fetches the advances for a sequence of glyph IDs in the specified
font, for horizontal text segments.
- public Position get_glyph_h_kerning (Codepoint left_glyph, Codepoint right_glyph)
Fetches the kerning-adjustment value for a glyph-pair in the specified
font, for horizontal text segments.
- public Bool get_glyph_h_origin (Codepoint glyph, out Position x, out Position y)
Fetches the (X,Y) coordinates of the origin for a glyph ID in the
specified font, for horizontal text segments.
- public void get_glyph_kerning_for_direction (Codepoint first_glyph, Codepoint second_glyph, Direction direction, out Position x, out Position y)
Fetches the kerning-adjustment value for a glyph-pair in the specified
font.
- public Bool get_glyph_name (Codepoint glyph, out char[] name)
Fetches the glyph-name string for a glyph ID in the specified
font.
- public void get_glyph_origin_for_direction (Codepoint glyph, Direction direction, out Position x, out Position y)
Fetches the (X,Y) coordinates of the origin for a glyph in the
specified font.
- public Position get_glyph_v_advance (Codepoint glyph)
Fetches the advance for a glyph ID in the specified font, for vertical
text segments.
- public void get_glyph_v_advances (uint count, Codepoint first_glyph, uint glyph_stride, Position first_advance, uint advance_stride)
Fetches the advances for a sequence of glyph IDs in the specified
font, for vertical text segments.
- public Position get_glyph_v_kerning (Codepoint top_glyph, Codepoint bottom_glyph)
Fetches the kerning-adjustment value for a glyph-pair in the specified
font, for vertical text segments.
- public Bool get_glyph_v_origin (Codepoint glyph, out Position x, out Position y)
Fetches the (X,Y) coordinates of the origin for a glyph ID in the
specified font, for vertical text segments.
- public Bool get_h_extents (out FontExtents extents)
Fetches the extents for a specified font, for horizontal text
segments.
- public Bool get_nominal_glyph (Codepoint unicode, out Codepoint glyph)
Fetches the nominal glyph ID for a Unicode code point in the specified
font.
- public uint get_nominal_glyphs (uint count, Codepoint first_unicode, uint unicode_stride, Codepoint first_glyph, uint glyph_stride)
Fetches the nominal glyph IDs for a sequence of Unicode code points.
- public unowned Font get_parent ()
Fetches the parent font of font.
- public void get_ppem (out uint x_ppem, out uint y_ppem)
Fetches the horizontal and vertical points-per-em (ppem) of a font.
- public float get_ptem ()
Fetches the "point size" of a font.
- public void get_scale (out int x_scale, out int y_scale)
Fetches the horizontal and vertical scale of a font.
- public Bool get_v_extents (out FontExtents extents)
Fetches the extents for a specified font, for vertical text segments.
- public int get_var_coords_normalized (uint length)
Fetches the list of normalized variation coordinates currently set on
a font.
- public Bool get_variation_glyph (Codepoint unicode, Codepoint variation_selector, out Codepoint glyph)
Fetches the glyph ID for a Unicode code point when followed by by the
specified variation-selector code point, in the specified font.
- public Bool glyph_from_string (uint8[] s, out Codepoint glyph)
Fetches the glyph ID from font that matches the specified
string.
- public void glyph_to_string (Codepoint glyph, out char[] s)
Fetches the name of the specified glyph ID in font and
returns it in string s.
- public Bool is_immutable ()
Tests whether a font object is immutable.
- public void make_immutable ()
Makes font immutable.
- public void set_face (Face face)
Sets face as the font-face value of font.
- public void set_funcs (owned FontFuncs klass)
Replaces the font-functions structure attached to a font, updating the
font's user-data with font-data and the destroy callback.
- public void set_funcs_data (void* font_data)
Replaces the user data attached to a font, updating the font's
destroy callback.
- public void set_parent (Font parent)
Sets the parent font of font.
- public void set_ppem (uint x_ppem, uint y_ppem)
Sets the horizontal and vertical pixels-per-em (PPEM) of a font.
- public void set_ptem (float ptem)
Sets the "point size" of a font.
- public void set_scale (int x_scale, int y_scale)
Sets the horizontal and vertical scale of a font.
- public void set_var_coords_design (float coords, uint coords_length)
Applies a list of variation coordinates (in design-space units) to a
font.
- public void set_var_coords_normalized (int coords, uint coords_length)
Applies a list of variation coordinates (in normalized units) to a
font.
- public void set_var_named_instance (uint instance_index)
Sets design coords of a font from a named-instance index.
- public void set_variations (Variation variations, uint variations_length)
Applies a list of font-variation settings to a font.
- public void subtract_glyph_origin_for_direction (Codepoint glyph, Direction direction, out Position x, out Position y)
Subtracts the origin coordinates from an (X,Y) point coordinate, in
the specified glyph ID in the specified font.