Skip to main content

A lib for guessing font name

Project description


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.


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"


fontname is release under MIT license

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 fontname, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size (7.1 kB) File type Source Python version None Upload date Hashes View
Filename, size fontname-0.2.0-py2.py3-none-any.whl (5.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

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