pango.font_map

Module for [FontMap] class

Types 3

A [pango.font_map.FontMap] represents the set of fonts available for a particular rendering system.

This is a virtual object with implementations being specific to particular rendering systems.

Methods
GType _gType() @property
FontMap self()Returns `this`, for use in `with` statements.
FontMapGidBuilder builder()Get builder for [pango.font_map.FontMap] Returns: New builder object
gobject.types.GType itemType() @propertyGet `itemType` property. Returns: The type of items contained in this list.
uint nItems() @propertyGet `nItems` property. Returns: The number of items contained in this list.
void changed()Forces a change in the context, which will cause any [pango.context.Context] using this fontmap to change.
pango.context.Context createContext()Creates a [pango.context.Context] connected to fontmap.
pango.font_family.FontFamily getFamily(string name)Gets a font family by name.
uint getSerial()Returns the current serial number of fontmap.
void listFamilies(out pango.font_family.FontFamily[] families)List all families for a fontmap.
pango.font.Font loadFont(pango.context.Context context, pango.font_description.FontDescription desc)Load the font in the fontmap that is the closest match for desc.
pango.fontset.Fontset loadFontset(pango.context.Context context, pango.font_description.FontDescription desc, pango.language.Language language)Load a set of fonts in the fontmap that can be used to render a font matching desc.
pango.font.Font reloadFont(pango.font.Font font, double scale, pango.context.Context context = null, string variations = null)Returns a new font that is like font, except that its size is multiplied by scale, its backend-dependent configuration (e.g. cairo font options) is replaced by the one in context, and its variation...
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder for [pango.font_map.FontMap]

Methods