1.0.1 • Published 6 years ago
font-stats v1.0.1
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 );