An open API service indexing awesome lists of open source software.

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.

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 );
```