![]() |
![]() |
Public Member Functions | |
FontDescription | describe () const |
Returns a description of the font. | |
Glib::RefPtr<Coverage> | get_coverage (const Language& language) const |
Computes the coverage map for a given font and language tag. | |
void | get_glyph_extents (Glyph glyph, Rectangle& ink_rect, Rectangle& logical_rect) const |
Gets the logical and ink extents of a glyph within a font. | |
Rectangle | get_glyph_ink_extents (Glyph glyph) const |
Get the ink extents of a glyph within the font. | |
Rectangle | get_glyph_logical_extents (Glyph glyph) const |
Gets the logical extents of a glyph within the font. | |
FontMetrics | get_metrics (const Language& language) const |
Gets overall metric information for a font. | |
FontMetrics | get_metrics () const |
Gets overall metric information for a font. | |
const PangoFont* | gobj () const |
Provides access to the underlying C GObject. | |
PangoFont* | gobj () |
Provides access to the underlying C GObject. | |
PangoFont* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
virtual | ~Font () |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<Pango::Font> | wrap (PangoFont* object, bool take_copy=false) |
|
|
|
Returns a description of the font.
|
|
Computes the coverage map for a given font and language tag.
|
|
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. |
|
Get the ink extents of a glyph within the font.
|
|
Gets the logical extents of a glyph within the 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.
|
|
Gets overall metric information for a font. The metrics may be substantially different for different scripts. However, this function overload returns the metrics for the entire font. |
|
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase. |
|
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase. |
|
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
|
|