A Node.js wrapper for FontForge
npm install fontforge
getName() returns the name of the font stored in src
import { getName } from 'fontforge';
// Contains 'MyFont'
const src = 'MyFont-File.ttf';
const name = getName(src);
// Oututs: 'MyFont'
console.log(name);