Gnm.Font

Fields

Name

Type

Access

Description

context

Pango.Context

r/w

font_name

str

r/w

go

object

r/w

is_bold

int

r/w

is_italic

int

r/w

ref_count

int

r/w

size_pts

float

r/w

Methods

class

equal (v, v2)

class

hash (v)

class

new (context, font_name, size_pts, bold, italic)

class

override_codepage (font_name)

ref ()

unref ()

Details

class Gnm.Font
classmethod equal(v, v2)
Parameters:
Return type:

int

classmethod hash(v)
Parameters:

v (object or None) –

Return type:

int

classmethod new(context, font_name, size_pts, bold, italic)
Parameters:
Return type:

Gnm.Font

classmethod override_codepage(font_name)
Parameters:

font_name (str) – The win32 Gnm.font name

Return type:

int

Returns a codepage for the named Win32 Gnm.font, or -1 if no such codepage is known.

ref()
Return type:

Gnm.Font

unref()