scistag.imagestag.font_registry.FontRegistry¶
- class FontRegistry[source]¶
Bases:
objectManages all available fonts which can be used from (especially) ImageStag and SlideStag.
Methods
Tries to create a font handle for given font
Returns a list of all fonts
Registers a single font.
Attributes
__dict____doc____module____weakref__list of weak references to the object (if defined)
Defines if the base fonts were configured already
Multi-thread access lock
Dictionary of registered fonts
- classmethod get_font(font_face, size, flags=None)[source]¶
Tries to create a font handle for given font
- classmethod get_fonts()[source]¶
Returns a list of all fonts
- Returns
A list of all registered fonts and their variations
- classmethod register_font(font_face, base_path, variations)[source]¶
Registers a single font. See _register_base_fonts for examples.
- Parameters
e.g. “-Bold”)
- _base_fonts_registered = False¶
Defines if the base fonts were configured already
- access_lock = <unlocked _thread.RLock object owner=0 count=0>¶
Multi-thread access lock
- fonts = {}¶
Dictionary of registered fonts