Find the system fonts filename.
Project description
FindSystemFontsFilename
This tool allows you to get the font filename on your system. It will collect TrueType (.ttf), OpenType (.otf) and TrueType Collection (.ttf) font format.
It uses some APIs to find the font filename:
- Windows: DirectWrite API
- macOS: Core Text API
- Linux: Fontconfig API
Installation
pip install FindSystemFontsFilename
How to use it
from find_system_fonts_filename import get_system_fonts_filename, FontConfigNotFound, OSNotSupported
try:
fonts_filename = get_system_fonts_filename()
except (FontConfigNotFound, OSNotSupported):
# Deal with the exception
# OSNotSupported can only happen in Windows and macOS
# - Windows Vista SP2 and more are supported
# - macOS 10.6 and more are supported
# FontConfigNotFound can only happen on Linux when Fontconfig could't be found.
pass
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for FindSystemFontsFilename-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38ef69ad64a5f800bd3157b35196d7b6cac1023458198343dc0a9757217a1fd6 |
|
MD5 | c63bbd71e34b9bddb5c752553c3c2853 |
|
BLAKE2b-256 | ceb849633af723cfb1832e67a55462e734b1122be550ade84b03a0b319460532 |
Close
Hashes for FindSystemFontsFilename-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3304e7b4c2488930a79c81e5237fa3c2c5d8e19c4e95ebdf50cc6558849c4688 |
|
MD5 | ce0291b93b33614098b43b8c3cda96f5 |
|
BLAKE2b-256 | bf46bfdf99588b443eaa2ee9d1bd101d346a08cb2e2cada0bb87c00b0c32c298 |