qtawesome.load_font¶
- qtawesome.load_font(prefix, ttf_filename, charmap_filename, directory=None)[source]¶
Loads a font file and the associated charmap.
If
directory
is None, the files will be looked for in./fonts/
.- Parameters
Example
The spyder ide uses qtawesome and uses a custom font for spyder-specific icons:
qta.load_font('spyder', 'spyder.ttf', 'spyder-charmap.json')