Gimp.Font

g GObject.GInterface GObject.GInterface Gimp.ConfigInterface Gimp.ConfigInterface GObject.GInterface->Gimp.ConfigInterface GObject.Object GObject.Object Gimp.Resource Gimp.Resource GObject.Object->Gimp.Resource Gimp.ConfigInterface->Gimp.Resource Gimp.Font Gimp.Font Gimp.Resource->Gimp.Font

Subclasses:

None

Methods

Inherited:

Gimp.Resource (20), GObject.Object (37), Gimp.ConfigInterface (14)

Structs:

GObject.ObjectClass (5)

class

get_by_name (name)

get_pango_font_description ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

Gimp.Resource (1)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Gimp.Font(**kwargs)
Bases:

Gimp.Resource

Abstract:

No

Structure:

Gimp.FontClass

Installable object used by text tools.

classmethod get_by_name(name)
Parameters:

name (str) – The name of the font.

Returns:

The font.

Return type:

Gimp.Font or None

Returns a font with the given name.

If several fonts are named identically, the one which is returned by this function should be considered random. This can be used when you know you won’t have multiple fonts of this name or that you don’t want to choose (non-interactive scripts, etc.). If you need more control, you should use [func`fonts_get_list`] instead. Returns None when no font exists of that name.

New in version 3.0.

get_pango_font_description()
Returns:

a Pango.FontDescription representing self.

Return type:

Pango.FontDescription

Returns a [struct`Pango`.FontDescription] representing self.

New in version 3.0.