Adobe Glyph List For New Fonts as JSON
npm install aglfnThis package provides the [Adobe Glyph List For New Fonts][d6260ce2] parsed as a JSON array.
[d6260ce2]: https://github.com/adobe-type-tools/agl-aglfn "Adobe AGL & AGLFN on GitHub"
``sh`
npm install --save aglfn
Adobe’s AGLFN text file contains 3 fields for each glyph:
1. a unicode value as four uppercase hexadecimal digits, e.g. 00C1Aacute
2. a glyph name, e.g. LATIN CAPITAL LETTER A WITH ACUTE
3. a character name, e.g.
In the provided JSON file, each glyph is encoded as an object containing unicodeValue, glyphName and charName properties. For example:
`json`
{
"unicodeValue": "0030",
"glyphName": "zero",
"charName": "DIGIT ZERO"
}
`js
const AGLFN = require('aglfn')
AGLFN.find((glyph) => glyph.unicodeValue === '2203')
// => { unicodeValue: '2203',
// glyphName: 'existential',
// charName: 'THERE EXISTS' }
AGLFN.filter((glyph) => glyph.charName.includes('TRIANGLE'))
// => [ { unicodeValue: '25BC',
// glyphName: 'triagdn',
// charName: 'BLACK DOWN-POINTING TRIANGLE' },
// { unicodeValue: '25B2',
// glyphName: 'triagup',
// charName: 'BLACK UP-POINTING TRIANGLE' } ]
``