Struct

PangoGlyphItem

Description [src]

struct PangoGlyphItem {
  PangoItem* item;
  PangoGlyphString* glyphs;
  int y_offset;
  int start_x_offset;
  int end_x_offset;
}

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.

Structure members
item

Corresponding PangoItem

glyphs

Corresponding PangoGlyphString

y_offset

Shift of the baseline, relative to the baseline of the containing line. Positive values shift upwards.

start_x_offset

Horizontal displacement to apply before the glyph item. Positive values shift right.

end_x_offset

Horizontal displacement to apply after th glyph item. Positive values shift right.

Instance methods

pango_glyph_item_apply_attrs

Splits a shaped item (PangoGlyphItem) into multiple items based on an attribute list.

since: 1.2

pango_glyph_item_copy

Make a deep copy of an existing PangoGlyphItem structure.

since: 1.20

pango_glyph_item_free

Frees a PangoGlyphItem and resources to which it points.

since: 1.6

pango_glyph_item_get_logical_widths

Given a PangoGlyphItem and the corresponding text, determine the width corresponding to each character.

since: 1.26

pango_glyph_item_letter_space

Adds spacing between the graphemes of glyph_item to give the effect of typographic letter spacing.

since: 1.6

pango_glyph_item_split

Modifies orig 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 orig.

since: 1.2