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 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)

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.0.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distributions

fonts-0.0.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

fonts-0.0.2-py2-none-any.whl (3.8 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: fonts-0.0.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.12.4 setuptools/33.1.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.13

File hashes

Hashes for fonts-0.0.2.tar.gz
Algorithm Hash digest
SHA256 15ce78e4ee2c767651bdf175957c01e6965b2148999e1668c8a17291278b8000
MD5 f4eeca693886afa8c4deea370900192f
BLAKE2b-256 9541d548a0777458330754d8498966f674b7c91965cfa9e9177e46dc0e23a01c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fonts-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.12.4 setuptools/33.1.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.13

File hashes

Hashes for fonts-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7fbd9acacbc051057486aa0b1f0868d12d32f7903c3142ab6cbe11dc39e76aee
MD5 a179f8344f44dcb0ef9edc2bb3677d1e
BLAKE2b-256 60022aa42071efb69198f016eeaf726284c04704c7692f5f18fe25cfbdfb5a39

See more details on using hashes here.

File details

Details for the file fonts-0.0.2-py2-none-any.whl.

File metadata

  • Download URL: fonts-0.0.2-py2-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.12.4 setuptools/33.1.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.13

File hashes

Hashes for fonts-0.0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 3246ae014911379a2710a4ad66a324cec66a8559f08afb8d66d63ab52c8091e0
MD5 5cd81da821e7cf7e36ab1aff6d3ad837
BLAKE2b-256 17b5a3aaf11583b4ff5b99d1d36405594cc0b496641a61e8583cbc63bae29b8c

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