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
GlyphString self()Returns `this`, for use in `with` statements.void numGlyphs(int propval) @propertySet `numGlyphs` field. Params: propval = number of glyphs in this glyph stringpango.glyph_string.GlyphString copy()Copy 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)Compute 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)Computes the extents of a sub-portion of a glyph string.int getWidth()Computes the logical width of the glyph string.void indexToX(string text, pango.analysis.Analysis analysis, int index, bool trailing, out int xPos)Converts 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)Converts from character position to x position.void setSize(int newLen)Resize a glyph string to the given length.void xToIndex(string text, pango.analysis.Analysis analysis, int xPos, out int index, out int trailing)Convert from x offset to character position.