Page 1 of 1

Wrong line spacing in PDF with embedded fonts

Posted: Fri Mar 20, 2026 7:10 am
by Tobias
Hi! This is driving me nuts. When exporting as PDF. the line spacing is wrong as soon as I export with the fonts embedded.
The weird thing: this only happens in my production app. I can not reproduce this in a standolen app. Although, I use the exact same code:

Code: Select all

var stiReport = new StiReport();
stiReport.Load("pdf-export-test.mrt");
stiReport.Render();
stiReport.ExportDocument(StiExportFormat.Pdf, "fonts-embedded.pdf",
    new StiPdfExportSettings { EmbeddedFonts = true });
stiReport.ExportDocument(StiExportFormat.Pdf, "fonts-not-embedded.pdf",
    new StiPdfExportSettings { EmbeddedFonts = false });
Any ideas?

Re: Wrong line spacing in PDF with embedded fonts

Posted: Fri Mar 20, 2026 2:18 pm
by Lech Kulikowski
Hello,

On the computer where the production app is running, is the system scaling set to 125%?

Is this production app marked as HiDpiAware or not?
Because it looks like our library cannot correctly detect the system scaling. This can happen if the application is not set as DpiAware, or if it is running as a service without user permissions, or in similar cases.

Thank you.

Re: Wrong line spacing in PDF with embedded fonts

Posted: Sat Mar 21, 2026 7:56 am
by Tobias
Thanks! This is indeed the case. It's a WPF .Net8 App. When I reduce scaling to 100% OR add a manifest with:

Code: Select all

<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
...then it works fine.

The thing is - PDF creation should not depend on the user DPI scaling preferences at all. And I consider this a regression bug, as it worked perfectly fine in
2025.4.3. Version 2026.1.1 seems to be the first version to introduce this strang issue.

Re: Wrong line spacing in PDF with embedded fonts

Posted: Mon Mar 23, 2026 8:50 pm
by Lech Kulikowski
Hello,

We require more time to investigate the issue thoroughly. Rest assured, we will keep you informed about the outcome as soon as possible.

Thank you.
#19765

Re: Wrong line spacing in PDF with embedded fonts

Posted: Thu Mar 26, 2026 12:55 pm
by Lech Kulikowski
Hello,

This issue did not reproduce in our tests even once.
However, we have added additional checks and a fix.

Thank you.