Class

PangoFontMap

Description [src]

abstract class Pango.FontMap : GObject.Object
  implements Gio.ListModel {
  /* No available fields */
}

A PangoFontMap represents the set of fonts available for a particular rendering system.

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

Ancestors

Implements

Instance methods

pango_font_map_add_font_file

Loads a font file with one or more fonts into the PangoFontMap.

since: 1.56

pango_font_map_changed

Forces a change in the context, which will cause any PangoContext using this fontmap to change.

since: 1.34

pango_font_map_create_context

Creates a PangoContext connected to fontmap.

since: 1.22

pango_font_map_get_family

Gets a font family by name.

since: 1.46

pango_font_map_get_serial

Returns the current serial number of fontmap.

since: 1.32.4

pango_font_map_list_families

List all families for a fontmap.

pango_font_map_load_font

Load the font in the fontmap that is the closest match for desc.

pango_font_map_load_fontset

Load a set of fonts in the fontmap that can be used to render a font matching desc.

pango_font_map_reload_font

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 variations are replaced by variations.

since: 1.52

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Methods inherited from GListModel (5)
g_list_model_get_item

Get the item at position.

g_list_model_get_item_type

Gets the type of the items in list.

g_list_model_get_n_items

Gets the number of items in list.

g_list_model_get_object

Get the item at position.

g_list_model_items_changed

Emits the GListModel::items-changed signal on list.

Properties

Pango.FontMap:item-type

The type of items contained in this list.

Pango.FontMap:n-items

The number of items contained in this list.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Signals inherited from GListModel (1)
GListModel::items-changed

This signal is emitted whenever items were added to or removed from list. At position, removed items were removed and added items were added in their place.

Class structure

struct PangoFontMapClass {
  GObjectClass parent_class;
  PangoFont* (* load_font) (
    PangoFontMap* fontmap,
    PangoContext* context,
    const PangoFontDescription* desc
  );
  void (* list_families) (
    PangoFontMap* fontmap,
    PangoFontFamily*** families,
    int* n_families
  );
  PangoFontset* (* load_fontset) (
    PangoFontMap* fontmap,
    PangoContext* context,
    const PangoFontDescription* desc,
    PangoLanguage* language
  );
  const char* shape_engine_type;
  guint (* get_serial) (
    PangoFontMap* fontmap
  );
  void (* changed) (
    PangoFontMap* fontmap
  );
  PangoFontFamily* (* get_family) (
    PangoFontMap* fontmap,
    const char* name
  );
  PangoFontFace* (* get_face) (
    PangoFontMap* fontmap,
    PangoFont* font
  );
  
}

The PangoFontMapClass structure holds the virtual functions for a particular PangoFontMap implementation.

Class members
parent_class: GObjectClass

Parent GObjectClass.

load_font: PangoFont* (* load_font) ( PangoFontMap* fontmap, PangoContext* context, const PangoFontDescription* desc )

A function to load a font with a given description. See pango_font_map_load_font().

list_families: void (* list_families) ( PangoFontMap* fontmap, PangoFontFamily*** families, int* n_families )

A function to list available font families. See pango_font_map_list_families().

load_fontset: PangoFontset* (* load_fontset) ( PangoFontMap* fontmap, PangoContext* context, const PangoFontDescription* desc, PangoLanguage* language )

A function to load a fontset with a given given description suitable for a particular language. See pango_font_map_load_fontset().

shape_engine_type: const char*

The type of rendering-system-dependent engines that can handle fonts of this fonts loaded with this fontmap.

get_serial: guint (* get_serial) ( PangoFontMap* fontmap )

A function to get the serial number of the fontmap. See pango_font_map_get_serial().

changed: void (* changed) ( PangoFontMap* fontmap )

See pango_font_map_changed().

get_family: PangoFontFamily* (* get_family) ( PangoFontMap* fontmap, const char* name )

No description available.

get_face: PangoFontFace* (* get_face) ( PangoFontMap* fontmap, PangoFont* font )

No description available.

Virtual methods

Pango.FontMapClass.changed

Forces a change in the context, which will cause any PangoContext using this fontmap to change.

since: 1.34

Pango.FontMapClass.get_face
No description available.

Pango.FontMapClass.get_family

Gets a font family by name.

since: 1.46

Pango.FontMapClass.get_serial

Returns the current serial number of fontmap.

since: 1.32.4

Pango.FontMapClass.list_families

List all families for a fontmap.

Pango.FontMapClass.load_font

Load the font in the fontmap that is the closest match for desc.

Pango.FontMapClass.load_fontset

Load a set of fonts in the fontmap that can be used to render a font matching desc.