I’m trying to embed fonts in a report but I cannot see the fonts in the exported PDF.
I have followed this YouTube tutorial video (https://www.youtube.com/watch?v=JtqJ9ZzY7_I) to add custom fonts to the report under Resources, which appear here in the Designer:
I can apply these fonts to text content in the report, which appears fine in the Designer window and in the Preview pane:
However, when exporting a PDF version of the report using the .NET Core Stimulsoft.Reports framework (version 2018.2.3) the custom fonts are not displayed:
This is the section of my API controller that exports the PDF:
Code: Select all
StiReport report = new StiReport();
report.Load(StiNetCoreHelper.MapPath(this, "Reports/DummyReport.mrt"));
StiPdfExportSettings pdfSettings = new StiPdfExportSettings();
pdfSettings.EmbeddedFonts = true;
...
return StiNetCoreReportResponse.ResponseAsPdf(report, pdfSettings, true);
I’ve attached the .mrt file and the full controller class that exports the PDF.
Thanks,
Sam