pango.glyph_string
Module for [GlyphString] class
class GlyphString
Types 1
classGlyphString : gobject.boxed.Boxed
A pango.glyph_string.GlyphString 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.
Methods
int numGlyphs() @property nothrowGet `numGlyphs` field. Returns: number of glyphs in this glyph stringvoid numGlyphs(int propval) @property nothrowSet `numGlyphs` field. Params: propval = number of glyphs in this glyph stringpango.glyph_string.GlyphString copy() nothrowCopy a glyph string and associated storage. Returns: the newly allocated [pango.glyph_string.GlyphString]void extents(pango.font.Font font, out pango.types.Rectangle inkRect, out pango.types.Rectangle logicalRect) nothrowCompute the logical and ink extents of a glyph string.void extentsRange(int start, int end, pango.font.Font font, out pango.types.Rectangle inkRect, out pango.types.Rectangle logicalRect) nothrowComputes the extents of a sub-portion of a glyph string.void indexToX(string text, pango.analysis.Analysis analysis, int index, bool trailing, out int xPos) nothrowConverts from character position to x position.void indexToXFull(string text, pango.analysis.Analysis analysis, pango.types.LogAttr attrs, int index, bool trailing, out int xPos) nothrowConverts from character position to x position.void xToIndex(string text, pango.analysis.Analysis analysis, int xPos, out int index, out int trailing) nothrowConvert from x offset to character position.