Thursday, 16 March 2017

Load fonts for NodeJs

I'm trying to generate PNG from Fabric JSON with node script.

If JSON contains iText objects with custom fonts - it cannot load, so it's generating canvas objects using Arial.

It's working when I install fonts in OS globally, but it's not an answer - I will have about 50 custom fonts.

How can I load fonts without installing them or using libraries like jsdom?



via dudzio

No comments:

Post a Comment