Pango.FontFace

g GObject.Object GObject.Object Pango.FontFace Pango.FontFace GObject.Object->Pango.FontFace

Subclasses:None

Virtual Methods

Inherited:GObject.Object (7)
  do_describe ()
  do_get_face_name ()
  do_get_family ()
  do_is_synthesized ()
  do_list_sizes ()

Properties

None

Signals

Inherited:GObject.Object (1)

Fields

Inherited:GObject.Object (1)
Name Type Access Description
parent_instance GObject.Object r  

Class Details

class Pango.FontFace(**kwargs)
Bases:GObject.Object
Abstract:Yes
Structure:Pango.FontFaceClass

The Pango.FontFace structure is used to represent a group of fonts with the same family, slant, weight, width, but varying sizes.

describe()[source]
Returns:a newly-created Pango.FontDescription structure holding the description of the face. Use Pango.FontDescription.free() to free the result.
Return type:Pango.FontDescription

Returns the family, style, variant, weight and stretch of a Pango.FontFace. The size field of the resulting font description will be unset.

get_face_name()[source]
Returns:the face name for the face. This string is owned by the face object and must not be modified or freed.
Return type:str

Gets a name representing the style of this face among the different faces in the Pango.FontFamily for the face. This name is unique among all faces in the family and is suitable for displaying to users.

get_family()[source]
Returns:the Pango.FontFamily
Return type:Pango.FontFamily

Gets the Pango.FontFamily that self belongs to.

New in version 1.46.

is_synthesized()[source]
Returns:whether self is synthesized.
Return type:bool

Returns whether a Pango.FontFace is synthesized by the underlying font rendering engine from another face, perhaps by shearing, emboldening, or lightening it.

New in version 1.18.

list_sizes()[source]
Returns:location to store a pointer to an array of int. This array should be freed with GLib.free().
Return type:sizes: [int]

List the available sizes for a font. This is only applicable to bitmap fonts. For scalable fonts, stores None at the location pointed to by sizes and 0 at the location pointed to by n_sizes. The sizes returned are in Pango units and are sorted in ascending order.

New in version 1.4.

do_describe() virtual
Returns:a newly-created Pango.FontDescription structure holding the description of the face. Use Pango.FontDescription.free() to free the result.
Return type:Pango.FontDescription

Returns the family, style, variant, weight and stretch of a Pango.FontFace. The size field of the resulting font description will be unset.

do_get_face_name() virtual
Returns:the face name for the face. This string is owned by the face object and must not be modified or freed.
Return type:str

Gets a name representing the style of this face among the different faces in the Pango.FontFamily for the face. This name is unique among all faces in the family and is suitable for displaying to users.

do_get_family() virtual
Returns:the Pango.FontFamily
Return type:Pango.FontFamily

Gets the Pango.FontFamily that face belongs to.

New in version 1.46.

do_is_synthesized() virtual
Returns:whether face is synthesized.
Return type:bool

Returns whether a Pango.FontFace is synthesized by the underlying font rendering engine from another face, perhaps by shearing, emboldening, or lightening it.

New in version 1.18.

do_list_sizes() virtual
Returns:location to store a pointer to an array of int. This array should be freed with GLib.free().
Return type:sizes: [int]

List the available sizes for a font. This is only applicable to bitmap fonts. For scalable fonts, stores None at the location pointed to by sizes and 0 at the location pointed to by n_sizes. The sizes returned are in Pango units and are sorted in ascending order.

New in version 1.4.