Skip to main content

Python Fonts

Project description

Python Fonts

A Python framework for distributing and managing fonts.

Why

While Python can access system fonts, it has no direct way of guaranteeing a particular font is available, or any way of including it as a dependency.

Fonts aims to tackle this problem with tools for packaging and distributing fonts via PyPi, which can be easily located and used in Python using PIL or otherwise.

How

Fonts uses entry_points to expose the font files located in each package.

To use these fonts in your project you should include them as a dependency and either grab the font paths using importlib.metadata.entry_points(group='fonts_ttf') or use this fonts module to collate them for you.

For example:

from PIL import ImageFont
from fonts.ttf import AmaticSC
font = ImageFont.truetype(AmaticSC)

Fonts

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

fonts-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

fonts-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fonts-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for fonts-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3fd4cc544dd1dcf1de1fdaf77980329bcfb7ccd22018070b4270261169c6ff92
MD5 0d9d94de65d75c31e862c6fdf984ab47
BLAKE2b-256 3bef0204fef272c9bf52b4bea9b547f6135948a1a44241064456b39b0ad2ce98

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fonts-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for fonts-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af4fb8f5b62301236a797bbf7483d1b1a0d99a566f683d84652a211dcf756def
MD5 fd2909ff87f7e415e9d3268a3835f60c
BLAKE2b-256 91afd6c3cedfe9de1f449c3378ee7e4c1a7b75dc387d4402468236a853ab2a22

See more details on using hashes here.

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