fc

font-chars

Lists the unicode codepoints/characters of a font loaded by opentype.js

Showing:

Popularity

Downloads/wk

4

GitHub Stars

0

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

1

Size (min+gzip)

0.2KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

font-chars

Lists the unicode codepoints/characters of a font loaded by opentype.js

david

Heavily inspired by character-map (which is a CLI tool).

Usage

npm install font-chars
var opentype  = require('opentype.js')
  , fontChars = require('font-chars');

opentype.load('./path/to/font.ttf', function(err, font) {
    if (err) {
        console.log(err);
        return;
    }

    console.log(fontChars.getCodepoints(font));
});

The returned array contains unicode code points, they can be converted into human readable characters if needed.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100