PangoXft.Font

g GObject.Object GObject.Object Pango.Font Pango.Font GObject.Object->Pango.Font PangoFc.Font PangoFc.Font Pango.Font->PangoFc.Font PangoXft.Font PangoXft.Font PangoFc.Font->PangoXft.Font

Subclasses:

None

Methods

Inherited:

PangoFc.Font (7), Pango.Font (13), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_glyph (wc)

get_unknown_glyph (wc)

has_char (wc)

Virtual Methods

Inherited:

Pango.Font (8), GObject.Object (7)

Properties

Inherited:

PangoFc.Font (2)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class PangoXft.Font(**kwargs)
Bases:

PangoFc.Font

Abstract:

No

PangoXftFont is an implementation of PangoFcFont using the Xft library for rendering. It is used in conjunction with PangoXftFontMap.

get_glyph(wc)[source]
Parameters:

wc (str) – Unicode codepoint to look up

Returns:

the glyph index, or 0, if the Unicode character does not exist in the font.

Return type:

int

Gets the glyph index for a given Unicode character for self.

If you only want to determine whether the font has the glyph, use PangoXft.Font.has_char().

Use PangoFc.Font.get_glyph() instead.

New in version 1.2.

get_unknown_glyph(wc)[source]
Parameters:

wc (str) – the Unicode character for which a glyph is needed.

Returns:

a glyph index into self.

Return type:

int

Returns the index of a glyph suitable for drawing wc as an unknown character.

Use PANGO_GET_UNKNOWN_GLYPH() instead.

has_char(wc)[source]
Parameters:

wc (str) – Unicode codepoint to look up

Returns:

True if self has the requested codepoint.

Return type:

bool

Determines whether self has a glyph for the codepoint wc.

Use PangoFc.Font.has_char() instead.

New in version 1.2.