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), TrueType Collection (.ttc) and OpenType Collection (.otc) font format.
It uses some APIs to find the font filename:
- Windows (Vista SP2 and more are supported): DirectWrite API and GDI API
- macOS (10.6 and more are supported): Core Text API
- Linux: Fontconfig API
- Android (SDK/API 29 and more are supported): NDK Font API
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
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file findsystemfontsfilename-0.3.0.tar.gz
.
File metadata
- Download URL: findsystemfontsfilename-0.3.0.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22d134318da3d465ca16288594ca5bb87455c35e8357cba97637cffbed483b6e |
|
MD5 | 259b26dc9955b6038fe7b779ea2a9592 |
|
BLAKE2b-256 | a9a7435d05f21eb1cbf804ab89b7ba2a7dd3356f48d93ee9a587b0e4b35c5911 |
File details
Details for the file FindSystemFontsFilename-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: FindSystemFontsFilename-0.3.0-py3-none-any.whl
- Upload date:
- Size: 28.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 521abcc08cc2c6d791867bb3f19d6c616b0fb21eca1f5a64b92129bebf45d933 |
|
MD5 | 08a1ce887648316ba56f67111940f40d |
|
BLAKE2b-256 | 7de48cac17f7a1df59ef875fb971b1e63305e024dd56e460b4c9238648296e4d |