Skip to main content

Python Fonts

Project description

Python Fonts

A Python framework for distributing and managing fonts.


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.


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 pkg_resources.iter_entry_points('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)



  • Added otf support

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for fonts, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size fonts-0.0.3-py2-none-any.whl (4.2 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size fonts-0.0.3-py3-none-any.whl (4.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size fonts-0.0.3.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page