ttf-postscript-name
v1.0.0
Published
A small utility to extract the PostScript name from a TrueType font file.
Downloads
61
Readme
TTF PostScript Name
A small utility to extract the PostScript name from a TrueType font file.
Extracted from trevordixon/ttfinfo, which is a more comprehensive tool for extracting metadata from TrueType fonts.
Installation
npm install ttf-postscript-name
Usage
import ttfPostscriptName from 'ttf-postscript-name'
const filecontents = fs.readFileSync('path/to/font.ttf')
const postscriptName = ttfPostscriptName(filecontents)
console.log(postscriptName)