Skip to main content

Fontaine font tool

Project description

pyfontaine is a python reimplementation of [Fontaine](http://fontaine.sf.net) (by Ed Trager) which analyses fonts for language support. It has a simple character set definition format ([Polish example](https://github.com/davelab6/pyfontaine/blob/master/fontaine/charmaps/polish.py) and autodetects new definition files that appear in the [charmaps](https://github.com/davelab6/pyfontaine/tree/master/fontaine/charmaps) directory.

It has a command line tool. Given a font, it returns the font’s metadata found directly in the font (family name, style name, copyrights, etc) and then infers some useful metadata about its language support (coverage as 4-stars, as percentage, and a list of missing characters needed to get to 100%).

It has a python module. [Example script](https://github.com/xen/fontbakery/blob/master/scripts/famchar.py) from the Font Bakery project.

pyfontaine has been made so far by @hash3g and @davelab6 and @xen, and your contributions are welcome!

Dependencies

Related:

Usage

To output plain text:

pyfontaine font.ttf

To output XML:

pyfontaine –xml font.ttf

To output JSON:

pyfontaine –json font.ttf

To output percent coveraging in CSV:

pyfontaine –csv font.ttf

If you want to see PNG that represent coverage implementation of font charset:

pyfontaine –coverage font.ttf

To specify only set of charmaps:

pyfontaine –set African,’Basic Latin’,’GWF vietnamese’ font.ttf

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

fontaine-1.0.9.tar.gz (379.1 kB view hashes)

Uploaded Source

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