A lib for guessing font name
Project description
Overview
fontname is a lib for guessing font name, in other words, reading and decoding quirk encoded raw font name.
It current supports SFNT format fonts, and is adept at dealing with CJK fonts.
It has been tested with hundreds fonts, but there will be many fonts still not supported, bug report is welcomed.
Installation
pip install fontname
fontname require freetype-py, it will be installed automatic.
Usage example
from fontname import guess_font_name
name = guess_font_name("FZZhunYuan-M02.ttf")
assert name == "方正准圆_GBK"
License
fontname is release under MIT license
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
fontname-0.2.0.zip
(7.1 kB
view hashes)
Built Distribution
Close
Hashes for fontname-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68050e441e70bfd7fdc142dad2f25f7024d3b54411b67fc07f49c24d9a56c337 |
|
MD5 | 96f0e75c99739932649f95abc1c473e4 |
|
BLAKE2b-256 | 78ad9d4a9eb3c0f27c58823b15f73c310eab2b98426ce8c1f608a212992fb603 |