in post viewtopic.php?f=27&t=59481&hilit=addOpentypeFontFile, this code is mandatory when export to pdf in node.js :
Code: Select all
Stimulsoft.Base.StiFontCollection.addOpentypeFontFile("Roboto-Black.ttf");
Are the system font loaded in Node.js by default ?
Do we have to load them ?
in article https://stimulsoft.zendesk.com/hc/en-us ... PDF-export :
"Update 2020.1.2:
It's possible to load necessary font files from a folder. It's working in node.js only.
Code: Select all
Stimulsoft.Base.StiFontCollection.setOpentypeFontsFolder("/System/Library/Fonts");
If we use this option, should we also use this line ?
Code: Select all
Stimulsoft.Base.StiFontCollection.addOpentypeFontFile("Roboto-Black.ttf");
Can i have a code sample to change the font (size, bold, italic) on a StiText component ?
Thanks,
Fabien.