Skip to main content

Font visualization and reporting tool

Project description

Disclaimer

This is a fork of https://github.com/googlefonts/fontreport

The original repository was archived by the owner on October 19, 2023. This version has been updated to compile correctly with Python 3 and includes additional information about the unicode block names and formatting improvements for better PDF output visualization.

FontReport

FontReport is a tool that allows the user to generate a report about a given font (TTF or OTF) listing its features in the plain-text (default) or PDF format. It is useful in quickly identifying such things as the Unicode coverage of the font, what glyphs are in it, what Open Type features it supports, available ligatures, and glyph substitutions.

Requirements

Install TeX Live following installation instructions for your platform. (Text Live is needed because FontReport uses xetex to generate PDF from .tex source.) Also, make sure python setuptools are installed.

Ubuntu

apt-get install python-setuptools texlive-xetex texlive-latex-recommended

Mac OS X

Setuptools are pre-installed for MacOS-X. To set up TeX Live, download and run MacTeX installation package at http://tug.org/cgi-bin/mactex-download/MacTeX.pkg

Other platforms

See http://www.tug.org/texlive/

Build

python -m build

Install

pip install dist/fontreport-2.0-py3-none-any.whl

or

pipx install dist/fontreport-2.0-py3-none-any.whl

Usage samples

Generate a PDF report

fontreport NotoSansMalayalam-Regular.ttf Malayalam.pdf

Resulting report: NotoSansMalayalam-Regular.pdf

fontreport NotoKufiArabic-Regular.ttf NotoKufiArabic-Regular.pdf

Resulting report: NotoKufiArabic-Regular.pdf

Generate a plain-text report

fontreport NotoSansMalayalam-Regular.ttf Malayalam.txt

Resulting report: NotoSansMalayalam-Regular.txt

Find out if a given Unicode character is included in what fonts in a directory

for file in *.ttf; do fontreport "$file" | grep U+XXXX > temp.txt && echo $file && cat temp.txt; done > summary.txt

Find language-specific substitutions defined in a font

fontreport NotoKufiArabic-Regular.ttf | grep locl

The output is:

locl  Localized Forms arab-URD  1
   1  locl                  uni0667 -> uni06F7.urdu
   1  locl                  uni06F4 -> uni06F4.urdu
   1  locl                  uni06F6 -> uni0666

Report Content

Currently a report consists of several tables:

  • Unicode coverage
  • Glyphs coverage
  • OpenType Features
  • Ligatures
  • Substitutions

Project details


Release history Release notifications | RSS feed

This version

2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fontreport-2.0.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fontreport-2.0-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file fontreport-2.0.tar.gz.

File metadata

  • Download URL: fontreport-2.0.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for fontreport-2.0.tar.gz
Algorithm Hash digest
SHA256 95d04212a314fbb620123c2084d3e90322f19987c8c696b7ac1f102b70dcab7d
MD5 f0effbd898f5b9222114fbb2764f80a1
BLAKE2b-256 470bf30ed034bb4c49af28318b25ce20d4b0ded748710afc106753fcd2e8412f

See more details on using hashes here.

File details

Details for the file fontreport-2.0-py3-none-any.whl.

File metadata

  • Download URL: fontreport-2.0-py3-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for fontreport-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7683f0b0ec6bd280266bf03e533ca746ab795d85bcf19d669289a0a0f1f83eb6
MD5 7458b66eca84b1b06ac206c3b6155124
BLAKE2b-256 a3b3a45b7f11107ba50fe704a563a817161f390ea2c732bb7ed49a56c96c820e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page