Class

PangoFontFamily

Description [src]

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

A PangoFontFamily is used to represent a family of related font faces.

The font faces in a family share a common design, but differ in slant, weight, width or other aspects.

Ancestors

Implements

Instance methods

pango_font_family_get_face

Gets the PangoFontFace of family with the given name.

since: 1.46

pango_font_family_get_name

Gets the name of the family.

pango_font_family_is_monospace

A monospace font is a font designed for text display where the the characters form a regular grid.

since: 1.4

pango_font_family_is_variable

A variable font is a font which has axes that can be modified to produce different faces.

since: 1.44

pango_font_family_list_faces

Lists the different font faces that make up family.

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.FontFamily:is-monospace

Is this a monospace font.

since: 1.52

Pango.FontFamily:is-variable

Is this a variable font.

since: 1.52

Pango.FontFamily:item-type

The type of items contained in this list.

Pango.FontFamily:n-items

The number of items contained in this list.

Pango.FontFamily:name

The name of the family.

since: 1.52

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 PangoFontFamilyClass {
  GObjectClass parent_class;
  void (* list_faces) (
    PangoFontFamily* family,
    PangoFontFace*** faces,
    int* n_faces
  );
  const char* (* get_name) (
    PangoFontFamily* family
  );
  gboolean (* is_monospace) (
    PangoFontFamily* family
  );
  gboolean (* is_variable) (
    PangoFontFamily* family
  );
  PangoFontFace* (* get_face) (
    PangoFontFamily* family,
    const char* name
  );
  void (* _pango_reserved2) (
void
  );
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.

list_faces: void (* list_faces) ( PangoFontFamily* family, PangoFontFace*** faces, int* n_faces )

No description available.

get_name: const char* (* get_name) ( PangoFontFamily* family )

No description available.

is_monospace: gboolean (* is_monospace) ( PangoFontFamily* family )

No description available.

is_variable: gboolean (* is_variable) ( PangoFontFamily* family )

No description available.

get_face: PangoFontFace* (* get_face) ( PangoFontFamily* family, const char* name )

No description available.

_pango_reserved2: void (* _pango_reserved2) ( void )

No description available.

Virtual methods

Pango.FontFamilyClass.get_face

Gets the PangoFontFace of family with the given name.

since: 1.46

Pango.FontFamilyClass.get_name

Gets the name of the family.

Pango.FontFamilyClass.is_monospace

A monospace font is a font designed for text display where the the characters form a regular grid.

since: 1.4

Pango.FontFamilyClass.is_variable

A variable font is a font which has axes that can be modified to produce different faces.

since: 1.44

Pango.FontFamilyClass.list_faces

Lists the different font faces that make up family.