/FindSystemFontsFilename

Find the system fonts filename

Primary LanguagePythonMIT LicenseMIT

FindSystemFontsFilename

This tool allows you to get the font filename on your system. It will collect TrueType (.ttf), OpenType (.otf), TrueType Collection (.ttc) and OpenType Collection (.otc) font format.

It uses some APIs to find the font filename:

Installation

pip install FindSystemFontsFilename

How to use it

from find_system_fonts_filename import get_system_fonts_filename, FindSystemFontsFilenameException

try:
    fonts_filename = get_system_fonts_filename()
except FindSystemFontsFilenameException:
    # Deal with the exception
    pass