foliojs / fontkit

An advanced font engine for Node and the browser
1.48k stars 219 forks source link

Fontkit.Font to Buffer #334

Open alpaylan opened 5 months ago

alpaylan commented 5 months ago

I have some Font objects I construct in my program, I would like to turn them back into TTF files so I can embed them into the DOM using FontFace directive. I couldn't find any way to do it using current fonkit API. Is there an easy way to do this?