Struct

Pango.GlyphString

Description [src]

struct PangoGlyphString {
  gint num_glyphs;
  PangoGlyphInfo* glyphs;
  gint* log_clusters;
}

A PangoGlyphString is used to store strings of glyphs with geometry and visual attribute information.

The storage for the glyph information is owned by the structure which simplifies memory management.

Structure members
num_glyphs

number of the glyphs in this glyph string.

glyphs

array of glyph information for the glyph string.

log_clusters

logical cluster info, indexed by the byte index within the text corresponding to the glyph string.

Constructors

pango_glyph_string_new

Create a new PangoGlyphString.

Instance methods

pango_glyph_string_copy

Copy a glyph string and associated storage.

pango_glyph_string_extents

Compute the logical and ink extents of a glyph string.

pango_glyph_string_extents_range

Computes the extents of a sub-portion of a glyph string.

pango_glyph_string_free

Free a glyph string and associated storage.

pango_glyph_string_get_logical_widths

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

pango_glyph_string_get_width

Computes the logical width of the glyph string.

pango_glyph_string_index_to_x

Converts from character position to x position.

pango_glyph_string_set_size

Resize a glyph string to the given length.

pango_glyph_string_x_to_index

Convert from x offset to character position.