Defined in pyglet.font
Add a font to pyglet’s search path.
In order to load a font that is not installed on the system, you must call this method to tell pyglet that it exists. You can supply either a filename or any file-like object.
The font format is platform-dependent, but is typically a TrueType font file containing a single font face. Note that to load this file after adding it you must specify the face name to load, not the filename.
Parameters: | font (str or file) – Filename or file-like object to load fonts from. |
---|