Skip to main content

Utility package for testing and loading fonts in matplotlib

Project description

mplfontutils

A utility package for testing and loading fonts in matplotlib.

Installation

pip install git+https://github.com/xsjk/mplfontutils.git

Usage

Command Line

Test which fonts can display specific text:

python -m mplfontutils "Hello 世界"

Python API

from mplfontutils import find_available_fonts, load_fonts_from_directory

# Load fonts from directory
load_fonts_from_directory("/path/to/fonts")

# Find compatible fonts
fonts = find_available_fonts("中文测试")
print(f"Found {len(fonts)} compatible fonts")

License

MIT License

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

mplfontutils-0.1.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mplfontutils-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file mplfontutils-0.1.0.tar.gz.

File metadata

  • Download URL: mplfontutils-0.1.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mplfontutils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fcfe68fda8476e69eabe6f18c41cb64efab79eecaa7b2ee34750c4e92b4ee152
MD5 e15cf939e4ceb3ed5692114d06a82bf1
BLAKE2b-256 a0a18d5dbc2144b10090e8e672938b10b7a8bb677625578afb9944c4b5a5507b

See more details on using hashes here.

Provenance

The following attestation bundles were made for mplfontutils-0.1.0.tar.gz:

Publisher: python-publish.yml on xsjk/mplfontutils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mplfontutils-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mplfontutils-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mplfontutils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4bd3fc8c65a73eda902c19a6641e994f09e585047bfa07687f708c2fbe3064fa
MD5 851705959f39ccbafd57ae34d4439e9f
BLAKE2b-256 e648882393e6ed4cde1e7ebfe0b91b4824550c0a55ad16f0d939918c54fd25ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for mplfontutils-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on xsjk/mplfontutils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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