Import line: | Pango = imports.gi.Pango; |
GIR File: | Pango-1.0.gir |
C documentation: | Pango.FontMetrics |
Struct : | FontMetrics |
Show / Hide Inherited methods, properties and signals |
None |
Method / Constructor | Defined By | |
---|---|---|
get_approximate_char_width
()
:
Number
Gets the approximate character width for a font metrics structure.
Gets the approximate character width for a font metrics structure. This is merely a representative value useful, for example, for determining the initial size for a window. Actual characters in text will be wider and narrower than this.
|
Pango.FontMetrics | |
get_approximate_digit_width
()
:
Number
Gets the approximate digit width for a font metrics structure.
Gets the approximate digit width for a font metrics structure. This is merely a representative value useful, for example, for determining the initial size for a window. Actual digits in text can be wider or narrower than this, though this value is generally somewhat more accurate than the result of pango_font_metrics_get_approximate_char_width() for digits.
|
Pango.FontMetrics | |
get_ascent
()
:
Number
Gets the ascent from a font metrics structure.
Gets the ascent from a font metrics structure. The ascent is the distance from the baseline to the logical top of a line of text. (The logical top may be above or below the top of the actual drawn ink. It is necessary to lay out the text to figure where the ink will be.)
|
Pango.FontMetrics | |
get_descent
()
:
Number
Gets the descent from a font metrics structure.
Gets the descent from a font metrics structure. The descent is the distance from the baseline to the logical bottom of a line of text. (The logical bottom may be above or below the bottom of the actual drawn ink. It is necessary to lay out the text to figure where the ink will be.)
|
Pango.FontMetrics | |
get_strikethrough_position
()
:
Number
Gets the suggested position to draw the strikethrough.
Gets the suggested position to draw the strikethrough. The value returned is the distance
|
Pango.FontMetrics | |
get_strikethrough_thickness
()
:
Number
Gets the suggested thickness to draw for the strikethrough.
Gets the suggested thickness to draw for the strikethrough.
|
Pango.FontMetrics | |
get_underline_position
()
:
Number
Gets the suggested position to draw the underline.
Gets the suggested position to draw the underline. The value returned is the distance
|
Pango.FontMetrics | |
get_underline_thickness
()
:
Number
Gets the suggested thickness to draw for the underline.
Gets the suggested thickness to draw for the underline.
|
Pango.FontMetrics |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Pango.Context
Method |
Get overall metric information for a particular font description.
|
Pango.Font
Method |
get_metrics
(Language language)
:
Pango.FontMetrics
Gets overall metric information for a font.
|
Pango.Fontset
Method |
get_metrics
()
:
Pango.FontMetrics
Get overall metric information for the fonts in the fontset.
|