Defined in pyglet.font
add_directory
(dir)¶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. |
---|