Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 1.6 KB

README.md

File metadata and controls

28 lines (23 loc) · 1.6 KB

FindSystemFontsFilename

FindSystemFontsFilename - CI Build Status FindSystemFontsFilename - Version FindSystemFontsFilename - Python Version

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