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 |
Show / Hide Inherited methods, properties and signals |
None |
Method / Constructor | Defined By | |
---|---|---|
new Pango.Font
()
Create a new Pango.Font
Create a new Pango.Font
|
||
Creates a new font description from a string representation in the form "[FAMILY-LIST] [STYLE-OPTIONS] [SIZE]", where FAMILY-LIST is a comma separated list of families optionally terminated by a comma, STYLE_OPTIONS is a whitespace separated list of words where each WORD describes one of style, variant, weight, stretch, or gravity, and SIZE is a decimal number (size in points) or optionally followed by the unit modifier "px" for absolute size.
Creates a new font description from a string representation in the form "[FAMILY-LIST] [STYLE-OPTIONS] [SIZE]", where FAMILY-LIST is a comma separated list of families optionally terminated by a comma, STYLE_OPTIONS is a whitespace separated list of words where each WORD describes one of style, variant, weight, stretch, or gravity, and SIZE is a decimal number (size in points) or optionally followed by the unit modifier "px" for absolute size. Any one of the options may be absent. If FAMILY-LIST is absent, then the family_name field of the resulting font description will be initialized to NULL. If STYLE-OPTIONS is missing, then all style options will be set to the default values. If SIZE is missing, the size in the resulting font description will be set to 0.
|
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 | |
Finds the best matching shaper for a font for a particular language tag and character point.
Finds the best matching shaper for a font for a particular language tag and character point.
|
Pango.Font | |
get_coverage
(Language language)
:
Pango.Coverage
Computes the coverage map for a given font and language tag.
Computes the coverage map for a given font and language tag.
|
Pango.Font | |
get_font_map
()
:
Pango.FontMap
Gets the font map for which the font was created.
Gets the font map for which the font was created. Note that the font maintains a
|
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 |
---|---|
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.Context
Method |
load_font
(FontDescription desc)
:
Pango.Font
Loads the font in one of the fontmaps in the context that is the closest match for desc.
|
Pango.FontMap
Method |
Load the font in the fontmap that is the closest match for desc.
|
Pango.Fontset
Method |
get_font
(Number wc)
:
Pango.Font
Returns the font in the fontset that contains the best glyph for the Unicode character wc.
|
Pango.GlyphString
Method |
Compute the logical and ink extents of a glyph string.
|
Pango.GlyphString
Method |
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.
|
Pango.Renderer
Method |
Draws the glyphs in glyphs with the specified PangoRenderer.
|
Pango.Renderer
Method |
Draws a single glyph with coordinates in device space.
|
PangoCairo
Method |
|
PangoCairo
Method |
Draws the glyphs in glyphs in the specified cairo context.
|
PangoFT2
Method |
Gets the PangoCoverage for a PangoFT2Font.
|
PangoFT2
Method |
Returns the native FreeType2
|
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, Number x, Number y)
:
none
|
PangoX
Method |
|
PangoX
Method |
|
PangoX
Method |
|
PangoX
Method |
|
PangoX
Method |
|
PangoX
Method |
|
PangoX
Method |
PangoX.list_subfonts
(Font font, Array charsets, Number n_charsets, Number subfont_ids, Object out_values)
:
Number
|
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.
|