You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an NodeJS app that load up the json data and save it as an image.
When Text gets loaded up as part of a group, the text gets squashed up (see attached).
I have tried to register font family but nothings seems to work. Any idea what could it be.
Test node already has a width and height values and it worked fine in React App.
I have an NodeJS app that load up the json data and save it as an image.
When Text gets loaded up as part of a group, the text gets squashed up (see attached).
I have tried to register font family but nothings seems to work. Any idea what could it be.
Test node already has a width and height values and it worked fine in React App.
// register fonts
registerFont('C:/Windows/Fonts/arial.ttf', { family: 'Arial' });
registerFont('C:/Windows/Fonts/calibri.ttf', { family: 'Calibri' });
registerFont('C:/Windows/Fonts/comic.ttf', { family: 'Comic Sans MS' });
registerFont('C:/Windows/Fonts/times.ttf', { family: 'Times New Roman' });
registerFont('C:/Windows/Fonts/verdana.ttf', { family: 'Verdana' });
The text was updated successfully, but these errors were encountered: