I am working on a web-based project that is completely in Javascript. In it, I want users to be able to format their text exactly as they want. I tried opentype.js to resolve, but it is to heavy. I just want to extract font file meta data.
input: .ttf,.otf,.woff2,.woff font file
output: font metadata
This package might do the job https://www.npmjs.com/package/occupant-website-auto-gen
The input to these is a set of font file paths, which will produce a set of objects that describe metadata about the fonts.