Font
Object Hierarchy:
Description:
A `PangoFont` is used to represent a font in a rendering-system-independent manner.
Namespace: Pango
Package: pango
Content:
Static methods:
- public static void descriptions_free (owned FontDescription[]? descs)
Frees an array of font descriptions.
- public static Font? deserialize (Context context, Bytes bytes) throws Error
Loads data previously created via [method@Pango.
Creation methods:
- protected Font ()
Methods:
- public virtual Font create_hb_font ()
- public virtual FontDescription describe ()
Returns a description of the font, with font size set in points.
- public virtual FontDescription describe_absolute ()
- public FontDescription describe_with_absolute_size ()
Returns a description of the font, with absolute font size set in device units.
- public virtual Coverage get_coverage (Language language)
Computes the coverage map for a given font and language tag.
- public unowned FontFace get_face ()
Gets the `PangoFontFace` to which this belongs.
- public virtual void get_features (out unowned Feature[] features, ref uint num_features)
Obtain the OpenType features that are provided by the font.
- public virtual unowned FontMap? get_font_map ()
Gets the font map for which the font was created.
- public virtual 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.
- public unowned Language[]? get_languages ()
Returns the languages that are supported by this .
- public virtual FontMetrics get_metrics (Language? language)
Gets overall metric information for a font.
- public bool has_char (unichar wc)
Returns whether the font provides a glyph for this character.
- public Bytes serialize ()
Serializes the this in a way that can be uniquely identified.
Inherited Members:
All known members inherited from class GLib.Object