GlyphString
Object Hierarchy:
Description:
[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "pango_glyph_string_get_type ()" ) ]
[ Compact ]
public class GlyphString
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.
Content:
Creation methods:
Methods:
- public GlyphString? copy ()
Copy a glyph string and associated storage.
- public void extents (Font font, out Rectangle ink_rect, out Rectangle logical_rect)
Compute the logical and ink extents of a glyph string.
- public void extents_range (int start, int end, Font font, out Rectangle ink_rect, out Rectangle logical_rect)
Computes the extents of a sub-portion of a glyph string.
- public void free ()
Free a glyph string and associated storage.
- public void get_logical_widths (string text, int length, int embedding_level, int[] logical_widths)
Given a `PangoGlyphString` and corresponding text, determine the width
corresponding to each character.
- public int get_width ()
Computes the logical width of the glyph string.
- public void index_to_x (string text, int length, Analysis analysis, int index_, bool trailing, out int x_pos)
Converts from character position to x position.
- public void index_to_x_full (string text, int length, Analysis analysis, LogAttr? attrs, int index_, bool trailing, out int x_pos)
Converts from character position to x position.
- public void set_size (int new_len)
Resize a glyph string to the given length.
- public void x_to_index (string text, int length, Analysis analysis, int x_pos, out int index_, out int trailing)
Convert from x offset to character position.
Fields: