-
public FontDescription describe ()
Returns a description of the font, with font size set in points. Use
describe_with_absolute_size if you want the font size in
device units.
-
public FontDescription describe_with_absolute_size ()
Returns a description of the font, with absolute font size set (in device units). Use
describe if you want the font size in points.
-
public unowned EngineShape find_shaper (Language language, uint32 ch)
Finds the best matching shaper for a font for a particular language tag and character point.
-
public Coverage get_coverage (Language language)
Computes the coverage map for a given font and language tag.
-
public FontMap? get_font_map ()
Gets the font map for which the font was created.
-
public void get_glyph_extents (Glyph glyph, out Rectangle ink_rect, out Rectangle logical_rect)
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.
-
public FontMetrics get_metrics (Language? language)
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.