pango.font

Module for [Font] class

Types 3

A pango.font.Font is used to represent a font in a rendering-system-independent manner.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
Font self() nothrowReturns `this`, for use in `with` statements.
FontGidBuilder builder() static nothrowGet builder for [pango.font.Font] Returns: New builder object
pango.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.
pango.font_map.FontMap getFontMap() nothrowGets 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) nothrowGets the logical and ink extents of a glyph within a font.
pango.language.Language[] getLanguages() nothrowReturns the languages that are supported by font.
pango.font_metrics.FontMetrics getMetrics(pango.language.Language language = null) nothrowGets overall metric information for a font.
bool hasChar(dchar wc) nothrowReturns whether the font provides a glyph for this character.
glib.bytes.Bytes serialize() nothrowSerializes the font in a way that can be uniquely identified.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder implementation template for pango.font.Font

Fluent builder for pango.font.Font

Methods
Font build() nothrowCreate object from builder. Returns: New object