Attributes
- familymap
Maps the constants for font families to names to use when searching for fonts.
familymap = { Name('DEFAULT') : Const('serif'), Name('SWISS') : Const('sans-serif'), Name('ROMAN') : Const('serif'), Name('MODERN') : Const('sans-serif'), Name('DECORATIVE') : Const('fantasy'), Name('SCRIPT') : Const('script'), Name('TELETYPE') : Const('monospace') } - name
name = property(_get_name, _set_name)
Method summary
- __eq__(self, other)
- __init__(self, face_name = '', size = 12, family = SWISS, weight = NORMAL, style = NORMAL, underline = 0, encoding = DEFAULT)
- __ne__(self, other)
- __repr__(self)
- copy(self)
- findfont(self)
- findfontname(self)
Methods
- __eq__(self, other)
- __init__(self, face_name = '', size = 12, family = SWISS, weight = NORMAL, style = NORMAL, underline = 0, encoding = DEFAULT)
- __ne__(self, other)
- __repr__(self)
- copy(self)
Returns a copy of the font object.
- findfont(self)
Returns the file name containing the font that most closely matches our font properties.
- findfontname(self)
Returns the name of the font that most closely matches our font properties