GlyphItem
Object Hierarchy:
Description:
[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "pango_glyph_item_get_type ()" ) ]
[ Compact ]
public class GlyphItem
A `PangoGlyphItem` is a pair of a `PangoItem` and the glyphs resulting from shaping the items text.
As an example of the usage of `PangoGlyphItem`, the results of shaping text with `PangoLayout` is a list of `PangoLayoutLine`, each of which
contains a list of `PangoGlyphItem`.
Content:
Methods:
- public SList<GlyphItem> apply_attrs (string text, AttrList list)
Splits a shaped item (`PangoGlyphItem`) into multiple items based on an
attribute list.
- public GlyphItem? copy ()
Make a deep copy of an existing `PangoGlyphItem` structure.
- public void free ()
Frees a `PangoGlyphItem` and resources to which it points.
- public void get_logical_widths (string text, int[] logical_widths)
Given a `PangoGlyphItem` and the corresponding text, determine the width
corresponding to each character.
- public void letter_space (string text, LogAttr[] log_attrs, int letter_spacing)
Adds spacing between the graphemes of this
to give the effect of typographic letter spacing.
- public GlyphItem split (string text, int split_index)
Modifies this to cover only the text after
split_index
, and returns a new item that covers the text before split_index
that used to be in
this.
Fields: