Defined in pyglet.font
Add a directory of fonts to pyglet’s search path.
This function simply calls add_file for each file with a .ttf extension in the given directory. Subdirectories are not searched.
Parameters: | dir (str) – Directory that contains font files. |
---|