Fontset
Superclasses: Object
Subclasses: FontsetSimple
- Constructors:
Fontset(**properties)
Methods
- class Fontset
- foreach(func: Callable[[...], bool], *data: Any) None
Iterates through all the fonts in a fontset, calling
func
for each one.If
func
returnsTrue
, that stops the iteration.Added in version 1.4.
- Parameters:
func – Callback function
data – data to pass to the callback function
- get_font(wc: int) Font
Returns the font in the fontset that contains the best glyph for a Unicode character.
- Parameters:
wc – a Unicode character
- get_metrics() FontMetrics
Get overall metric information for the fonts in the fontset.
Virtual Methods
- class Fontset
- do_foreach(func: Callable[[...], bool], *data: Any) None
Iterates through all the fonts in a fontset, calling
func
for each one.If
func
returnsTrue
, that stops the iteration.Added in version 1.4.
- Parameters:
func – Callback function
data – data to pass to the callback function
- do_get_font(wc: int) Font
Returns the font in the fontset that contains the best glyph for a Unicode character.
- Parameters:
wc – a Unicode character
- do_get_metrics() FontMetrics
Get overall metric information for the fonts in the fontset.
Fields
- class Fontset
- parent_instance