GObject.Object
Pango.Font
Import line: | Pango = imports.gi.Pango; |
GIR File: | Pango-1.0.gir |
C documentation: | Pango.Font |
Class : | Font |
Extends: | GObject.Object |
None |
Method / Constructor | Defined By | |
---|---|---|
new Pango.Font
()
Create a new Pango.Font
Create a new Pango.Font
|
||
Frees an array of font descriptions.
Frees an array of font descriptions.
|
Pango.Font | |
describe
()
:
Pango.FontDescription
Returns a description of the font, with font size set in points.
Returns a description of the font, with font size set in points.
Use pango_font_describe_with_absolute_size() if you want the font size in device units.
|
Pango.Font | |
describe_with_absolute_size
()
:
Pango.FontDescription
Returns a description of the font, with absolute font size set
(in device units).
Returns a description of the font, with absolute font size set
(in device units). Use pango_font_describe() if you want the font size in points.
|
Pango.Font | |
Gets the logical and ink extents of a glyph within a font.
Gets the logical and ink extents of a glyph within a font. The
coordinate system for each rectangle has its origin at the base line and horizontal origin of the character with increasing coordinates extending to the right and down. The macros PANGO_ASCENT(), PANGO_DESCENT(), PANGO_LBEARING(), and PANGO_RBEARING() can be used to convert from the extents rectangle to more traditional font metrics. The units of the rectangles are in 1/PANGO_SCALE of a device unit. If font is NULL, this function gracefully sets some sane values in the output variables and returns.
|
Pango.Font | |
get_metrics
(Language language)
:
Pango.FontMetrics
Gets overall metric information for a font.
Gets overall metric information for a font. Since the metrics may be
substantially different for different scripts, a language tag can be provided to indicate that the metrics should be retrieved that correspond to the script(s) used by that language. If font is NULL, this function gracefully sets some sane values in the output variables and returns. when finished using the object.
|
Pango.Font |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Pango.GlyphString
Method |
Compute the logical and ink extents of a glyph string.
|
Pango.GlyphString
Method |
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.
|
Pango.Renderer
Method |
Draws a single glyph with coordinates in device space.
|
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 |
Retrieves kerning information for a combination of two glyphs.
|
PangoFT2
Method |
Return the index of a glyph suitable for drawing unknown characters with
If you want to draw an unknown-box for a character that is not covered by the font, use PANGO_GET_UNKNOWN_GLYPH() instead. |
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. |