Custom fonts not applied to exported PDF report
Posted: Tue Oct 23, 2018 9:40 am
Hi,
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:
I want to be able to embed the fonts in the PDF so that the client device does not have to have these fonts installed for the report to display consistently and correctly.
I’ve attached the .mrt file and the full controller class that exports the PDF.
Thanks,
Sam
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