aglfn
This package provides the Adobe Glyph List For New Fonts parsed as a JSON array.
Installation
npm install --save aglfn
Details
Adobe’s AGLFN text file contains 3 fields for each glyph:
- a unicode value as four uppercase hexadecimal digits, e.g.
00C1
- a glyph name, e.g.
Aacute
- a character name, e.g.
LATIN CAPITAL LETTER A WITH ACUTE
In the provided JSON file, each glyph is encoded as an object containing unicodeValue
, glyphName
and charName
properties. For example:
Usage
const AGLFN = AGLFN// => { unicodeValue: '2203',// glyphName: 'existential',// charName: 'THERE EXISTS' } AGLFN// => [ { unicodeValue: '25BC',// glyphName: 'triagdn',// charName: 'BLACK DOWN-POINTING TRIANGLE' },// { unicodeValue: '25B2',// glyphName: 'triagup',// charName: 'BLACK UP-POINTING TRIANGLE' } ]