pango.glyph_string

Module for GlyphString class

Types 1

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
void * _cPtr(Flag!"Dup" dup = No.Dup)
GType _gType() @property
GlyphString self()Returns `this`, for use in `with` statements.
int numGlyphs() @propertyGet `numGlyphs` field. Returns: number of glyphs in this glyph string
void numGlyphs(int propval) @propertySet `numGlyphs` field. Params: propval = number of glyphs in this glyph string
pango.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.
Constructors
this(void * ptr, Flag!"Take" take)
this()Create a new [pango.glyph_string.GlyphString]. Returns: the newly allocated [pango.glyph_string.GlyphString], which should be freed with [pango.glyph_string.GlyphString.free].