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
Fredoka One (Sans-Serif, OFL) - https://pypi-hypernode.com/project/font-fredoka-one
Amatic SC (Hand-Drawn, OFL) - https://pypi-hypernode.com/project/font-amatic-sc
0.0.3
Added otf support
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file fonts-0.0.3.tar.gz
.
File metadata
- Download URL: fonts-0.0.3.tar.gz
- Upload date:
- Size: 2.9 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c626655b75a60715e118e44e270656fd22fd8f54252901ff6ebf1308ad01c405 |
|
MD5 | 73f573a59f9487e60df3d86d064f5a95 |
|
BLAKE2b-256 | 2ab8a418ce2393809882f7f3e0a948f148ae2fb396e24b84b3148f37b4e9ac0e |
File details
Details for the file fonts-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: fonts-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.2 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5f551379088ab260c2537980c3ccdff8af93408d9d4fa3319388d2ee25b7b6d |
|
MD5 | 18a595f87c7d53944c1f1f40979121b3 |
|
BLAKE2b-256 | 3e6aff04b5b3d22389aa57d09989ea708b93ca8f09ff57828d1ffb12ae6424a6 |
File details
Details for the file fonts-0.0.3-py2-none-any.whl
.
File metadata
- Download URL: fonts-0.0.3-py2-none-any.whl
- Upload date:
- Size: 4.2 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc4e3d7923bb09013606fcd7bf5c66d95af5ddd094a14a09195ebdab9808c40d |
|
MD5 | 49dcda5f346b31b6ec487e90fdbdba1c |
|
BLAKE2b-256 | 1a09d3d1ab62e91b5b0167e155779120b4127d5fb622da2ffcd9bd418d21198f |