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() static nothrowGet builder for [pango.font.Font] Returns: New builder objectpango.font.Font deserialize(pango.context.Context context, glib.bytes.Bytes bytes) staticLoads data previously created via [pango.font.Font.serialize].pango.font_description.FontDescription describe() nothrowReturns a description of the font, with font size set in points.pango.font_description.FontDescription describeWithAbsoluteSize() nothrowReturns a description of the font, with absolute font size set in device units.pango.coverage.Coverage getCoverage(pango.language.Language language) nothrowComputes the coverage map for a given font and language tag.pango.font_face.FontFace getFace() nothrowGets the [pango.font_face.FontFace] to which font belongs. Returns: the [pango.font_face.FontFace]void getFeatures(ref harfbuzz.feature.Feature[] features, ref uint numFeatures) nothrowObtain the OpenType features that are provided by the font.void getGlyphExtents(pango.types.Glyph glyph, out pango.types.Rectangle inkRect, out pango.types.Rectangle logicalRect) nothrowGets the logical and ink extents of a glyph within a font.pango.font_metrics.FontMetrics getMetrics(pango.language.Language language = null) nothrowGets overall metric information for a font.Fluent builder implementation template for pango.font.Font
Fluent builder for pango.font.Font