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.
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.
apt-get install python-setuptools texlive-xetex texlive-latex-recommended
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
See http://www.tug.org/texlive/
sudo python setup.py install
fontreport NotoSansMalayalam-Regular.ttf Malayalam.pdf
Resulting report: malayalam.pdf
fontreport NotoSansMalayalam-Regular.ttf Malayalam.txt
Resulting report: malayalam.txt
for file in *.ttf; do fontreport "$file" | grep U+XXXX > temp.txt && echo $file && cat temp.txt; done > summary.txt
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
Currently a report consists of several tables:
- Unicode coverage
- Glyphs coverage
- OpenType Features
- Ligatures
- Substitutions