A custom font can be registered with the engine so it embeds into the exported dashboard — text renders identically anywhere.

Add the font, then export.
var Stimulsoft = require('stimulsoft-dashboards-js');

Stimulsoft.Base.StiFontCollection.addFontFile('./Font/LongCang-Regular.ttf');

var report = Stimulsoft.Report.StiReport.createNewDashboard();
report.loadFile("Dashboard.mrt");

report.exportDocumentAsync(function (pdfData) {
    require('fs').writeFileSync('./Dashboard.pdf', Buffer.from(pdfData));
}, Stimulsoft.Report.StiExportFormat.Pdf);

How it works. The engine resolves and embeds the registered font during export, so custom typography survives into the output file.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.