Skip to main content

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:

Installation

pip install FindSystemFontsFilename

How to use it

from find_system_fonts_filename import AndroidLibraryNotFound, get_system_fonts_filename, FontConfigNotFound, OSNotSupported

try:
    fonts_filename = get_system_fonts_filename()
except (AndroidLibraryNotFound, FontConfigNotFound, OSNotSupported):
    # Deal with the exception
    # OSNotSupported can only happen in Windows, macOS and Android
    #   - Windows Vista SP2 and more are supported
    #   - macOS 10.6 and more are supported
    #   - Android SDK/API 29 and more are supported
    # FontConfigNotFound can only happen on Linux when Fontconfig could't be found.
    # AndroidLibraryNotFound can only happen on Android when the android library 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

FindSystemFontsFilename-0.1.2.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

FindSystemFontsFilename-0.1.2-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file FindSystemFontsFilename-0.1.2.tar.gz.

File metadata

File hashes

Hashes for FindSystemFontsFilename-0.1.2.tar.gz
Algorithm Hash digest
SHA256 23c81dbbd9a7cac448632731354601ad0153b091de4d4afb48702b0fb8be334e
MD5 794d0af96699d67645c9887521d7f39e
BLAKE2b-256 d7dfab5bdb0fb59b34eab9de2349ccf501ed25ba29d8968b0845b49017d7a2a9

See more details on using hashes here.

File details

Details for the file FindSystemFontsFilename-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for FindSystemFontsFilename-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 11e81e01747f020044fdd10c2601af4acbb4d7a531a4f3454a3687bd7a2507c6
MD5 0d4f919acc2ddde41c2db0f646ba1270
BLAKE2b-256 84fbb29cc4be20c67ca365d865167cefe7ce5087b6cf4ea6abe78f54cf8883f7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page