pango.font
Module for [Font] class
Types 3
classFont : gobject.object.ObjectWrap
A [pango.font.Font] is used to represent a font in a rendering-system-independent manner.
Methods
FontGidBuilder builder()Get builder for [pango.font.Font] Returns: New builder objectpango.font.Font deserialize(pango.context.Context context, glib.bytes.Bytes bytes)Loads data previously created via [pango.font.Font.serialize].pango.font_description.FontDescription describe()Returns a description of the font, with font size set in points.pango.font_description.FontDescription describeWithAbsoluteSize()Returns a description of the font, with absolute font size set in device units.pango.coverage.Coverage getCoverage(pango.language.Language language)Computes the coverage map for a given font and language tag.pango.font_face.FontFace getFace()Gets the [pango.fontface.FontFace] to which font belongs. Returns: the [pango.fontface.FontFace]void getFeatures(ref harfbuzz.feature.Feature[] features, ref uint numFeatures)Obtain the OpenType features that are provided by the font.pango.font_map.FontMap getFontMap()Gets the font map for which the font was created.void getGlyphExtents(pango.types.Glyph glyph, out pango.types.Rectangle inkRect, out pango.types.Rectangle logicalRect)Gets the logical and ink extents of a glyph within a font.pango.language.Language[] getLanguages()Returns the languages that are supported by font.pango.font_metrics.FontMetrics getMetrics(pango.language.Language language = null)Gets overall metric information for a font.bool hasChar(dchar wc)Returns whether the font provides a glyph for this character.glib.bytes.Bytes serialize()Serializes the font in a way that can be uniquely identified.