Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

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


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

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page