font_manager¶
- janim.utils.font_manager.get_fontext_synonyms(fontext)¶
Return a list of file extensions extensions that are synonyms for the given file extension fileext.
- janim.utils.font_manager.list_fonts(directory, extensions)¶
Return a list of all fonts matching any of the extensions, found recursively under the directory.
- janim.utils.font_manager.win32FontDirectory()¶
Return the user-specified font directory for Win32. This is looked up from the registry key
\\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Fonts
If the key is not found,
%WINDIR%\Fontswill be returned.
- janim.utils.font_manager.findSystemFonts(fontpaths=None, fontext='ttf')¶
Search for fonts in the specified font paths. If no paths are given, will use a standard set of system paths, as well as the list of fonts tracked by fontconfig if fontconfig is installed and available. A list of TrueType fonts are returned by default with AFM fonts as an option.