Import line: | Pango = imports.gi.Pango; |
GIR File: | Pango-1.0.gir |
C documentation: | Pango.GlyphString |
Struct : | GlyphString |
Properties | Defined By | |
---|---|---|
glyphs : Pango.GlyphInfo
|
Pango.GlyphString | |
log_clusters : gint32
|
Pango.GlyphString | |
num_glyphs : gint32
|
Pango.GlyphString | |
space : gint32
read only
|
Pango.GlyphString |
Method / Constructor | Defined By | |
---|---|---|
new Pango.GlyphString
()
Create a new Pango.GlyphString
Create a new Pango.GlyphString
|
||
copy
()
:
Pango.GlyphString
Copy a glyph string and associated storage.
Copy a glyph string and associated storage.
should be freed with pango_glyph_string_free(), or NULL if string was NULL.
|
Pango.GlyphString | |
Compute the logical and ink extents of a glyph string.
Compute the logical and ink extents of a glyph string. See the documentation
for pango_font_get_glyph_extents() for details about the interpretation of the rectangles.
|
Pango.GlyphString | |
extents_range
(gint32 start, gint32 end, Font font, Rectangle ink_rect, Rectangle logical_rect)
:
none
or NULL to indicate that the result is not needed.
or NULL to indicate that the result is not needed.
or NULL to indicate that the result is not needed. Computes the extents of a sub-portion of a glyph string. The extents are relative to the start of the glyph string range (the origin of their coordinate system is at the start of the range, not at the start of the entire glyph string).
|
Pango.GlyphString | |
free
()
:
none
Free a glyph string and associated storage.
Free a glyph string and associated storage.
|
Pango.GlyphString | |
get_logical_widths
(String text, gint32 length, gint32 embedding_level, gint32 logical_widths)
:
none
Given a PangoGlyphString resulting from pango_shape() and the corresponding
text, determine the screen width corresponding to each character.
Given a PangoGlyphString resulting from pango_shape() and the corresponding
text, determine the screen width corresponding to each character. When multiple characters compose a single cluster, the width of the entire cluster is divided equally among the characters. See also pango_glyph_item_get_logical_widths().
|
Pango.GlyphString | |
get_width
()
:
gint32
Computes the logical width of the glyph string as can also be computed
using pango_glyph_string_extents().
Computes the logical width of the glyph string as can also be computed
using pango_glyph_string_extents(). However, since this only computes the width, it's much faster. This is in fact only a convenience function that computes the sum of geometry.width for each glyph in the glyphs.
|
Pango.GlyphString | |
index_to_x
(String text, gint32 length, Analysis analysis, gint32 index_, gboolean trailing, gint32 x_pos)
:
none
Converts from character position to x position.
Converts from character position to x position. (X position
is measured from the left edge of the run). Character positions are computed by dividing up each cluster into equal portions.
|
Pango.GlyphString | |
set_size
(gint32 new_len)
:
none
Resize a glyph string to the given length.
Resize a glyph string to the given length.
|
Pango.GlyphString | |
x_to_index
(String text, gint32 length, Analysis analysis, gint32 x_pos, gint32 index_, gint32 trailing)
:
none
Convert from x offset to character position.
Convert from x offset to character position. Character positions
are computed by dividing up each cluster into equal portions. In scripts where positioning within a cluster is not allowed (such as Thai), the returned value may not be a valid cursor position; the caller must combine the result with the logical attributes for the text to compute the valid cursor position.
|
Pango.GlyphString |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Pango
Method |
Given a segment of text and the corresponding
PangoAnalysis structure returned from pango_itemize(), convert the characters into glyphs. |
Pango.Renderer
Method |
Draws the glyphs in glyphs with the specified PangoRenderer.
|
PangoCairo
Method |
Adds the glyphs in glyphs to the current path in the specified
cairo context. |
PangoCairo
Method |
Draws the glyphs in glyphs in the specified cairo context.
|
PangoFT2
Method |
|
PangoFT2
Method |
PangoFT2.render_transformed
(Bitmap bitmap, Matrix matrix, Font font, GlyphString glyphs, gint32 x, gint32 y)
:
none
|
PangoXft
Method |
PangoXft.picture_render
(Display display, Picture src_picture, Picture dest_picture, Font font, GlyphString glyphs, gint32 x, gint32 y)
:
none
Renders a PangoGlyphString onto an Xrender
|
PangoXft
Method |
Renders a PangoGlyphString onto an
|
PangoXft
Method |
PangoXft.render_transformed
(Draw draw, Color color, Matrix matrix, Font font, GlyphString glyphs, gint32 x, gint32 y)
:
none
Renders a PangoGlyphString onto a XftDraw, possibly
transforming the layed-out coordinates through a transformation matrix. |