font-stats
v1.0.1
Published
Takes a directory of fonts and generates a JSON file with detailed font statistics
Downloads
91
Readme
font-stats
Generates useful information about a font from a font file.
For example:
- Find all the ligatures contained within a font file (as groups of code points or strings).
- Generate a unicode-range that directly matches all the code points in a font file.
- Find all of the available OpenType features (
font-feature-settings
values) in a font file.
Installation
Available on npm as font-stats
:
npm install font-stats
Usage
let opensans = new FontStats("./fonts/OpenSans-Regular.ttf");
console.log( opensans.stats );