Import line: | Pango = imports.gi.Pango; |
GIR File: | Pango-1.0.gir |
C documentation: | Pango.GlyphString |
Struct : | GlyphString |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
glyphs : Pango.GlyphInfo
|
Pango.GlyphString | |
log_clusters : void*
|
Pango.GlyphString | |
num_glyphs : Number
|
Pango.GlyphString | |
space : Number
|
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
(Number start, Number end, Font font, Rectangle ink_rect, Rectangle logical_rect)
:
none
Computes the extents of a sub-portion of a glyph string.
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 | |
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
()
:
Number
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, Number length, Analysis analysis, Number index_, Boolean trailing)
:
Number
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
(Number new_len)
:
none
Resize a glyph string to the given length.
Resize a glyph string to the given length.
|
Pango.GlyphString | |
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 |
---|---|
Gdk
Method |
Gdk.draw_glyphs
(Drawable drawable, GC gc, Font font, Number x, Number y, GlyphString glyphs)
:
none
This is a low-level function; 99% of text rendering should be done using gdk_draw_layout() instead.
|
Gdk
Method |
Gdk.draw_glyphs_transformed
(Drawable drawable, GC gc, Matrix matrix, Font font, Number x, Number y, GlyphString glyphs)
:
none
Renders a PangoGlyphString onto a drawable, possibly transforming the layed-out coordinates through a transformation matrix.
|
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 |
|
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, Number x, Number y)
:
none
|
PangoX
Method |
|
PangoX
Method |
PangoX.render
(Display display, Drawable d, GC gc, Font font, GlyphString glyphs, Number x, Number y)
:
none
|
PangoXft
Method |
PangoXft.picture_render
(Display display, Picture src_picture, Picture dest_picture, Font font, GlyphString glyphs, Number x, Number 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, Number x, Number y)
:
none
Renders a PangoGlyphString onto a XftDraw, possibly transforming the layed-out coordinates through a transformation matrix.
|