https://github.com/zachleat/font-stats
Generates useful information about a font from a font file.
https://github.com/zachleat/font-stats
Last synced: about 1 year ago
JSON representation
Generates useful information about a font from a font file.
- Host: GitHub
- URL: https://github.com/zachleat/font-stats
- Owner: zachleat
- License: mit
- Created: 2017-12-22T03:03:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-26T23:26:57.000Z (over 8 years ago)
- Last Synced: 2025-04-23T13:13:10.444Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 279 KB
- Stars: 10
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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`](https://www.npmjs.com/package/font-stats):
```
npm install font-stats
```
## Usage
```
let opensans = new FontStats("./fonts/OpenSans-Regular.ttf");
console.log( opensans.stats );
```