Major difference between font size in 2024.4.3 version compare to 2020.2.3

Stimulsoft Reports.WEB discussion
Post Reply
fghiggi
Posts: 8
Joined: Tue Feb 23, 2021 7:55 pm

Major difference between font size in 2024.4.3 version compare to 2020.2.3

Post by fghiggi »

I'm updating the version of Stimulsoft in our applications, but I noticed a significant difference in the way the letters are displayed, which ends up breaking all the reports we have in our project.

stimulsoft 2020

Image

stimulsoft 2024

Image

As you can see, the difference is striking. What is the explanation for this? Is there a way to fix it?

I’m leaving a link here for a sample project, where the MRT and the printed PDF results are available. I’m also attaching the PDFs and the sample MRT file.

https://gitlab.com/fghiggi/stimulsoft-font-example
Attachments
report.mrt
(610.75 KiB) Downloaded 135 times
2024Report.pdf
(58 KiB) Downloaded 136 times
2020Report.pdf
(198.77 KiB) Downloaded 132 times
Lech Kulikowski
Posts: 7333
Joined: Tue Mar 20, 2018 5:34 am

Re: Major difference between font size in 2024.4.3 version compate to 2020.2.3

Post by Lech Kulikowski »

Hello,

The difference is that this is NetCore, in 2020 export was not configured yet and output was not quite right, higher than it should be.
Now in WinForms and in the NetCore versions the text is output in the same way and correctly.

You can return old behavior with the following option:
Stimulsoft.Drawing.Graphics.GraphicsEngine = Stimulsoft.Drawing.GraphicsEngine.Gdi

Thank you.
fghiggi
Posts: 8
Joined: Tue Feb 23, 2021 7:55 pm

Re: Major difference between font size in 2024.4.3 version compare to 2020.2.3

Post by fghiggi »

so i try to change to GDI

Code: Select all

            Stimulsoft.Drawing.Graphics.GraphicsEngine = Stimulsoft.Drawing.GraphicsEngine.Gdi;
            var reportPath = StiNetCoreHelper.MapPath(this, "Reports/Report.mrt");
            var report = new StiReport();
and the result was

Stimulsoft 2024.4.3

Image

Stimulsoft 2020.2.3


Image

still wrong, as you can see
Attachments
2024GDIReport.pdf
(33.31 KiB) Downloaded 133 times
Lech Kulikowski
Posts: 7333
Joined: Tue Mar 20, 2018 5:34 am

Re: Major difference between font size in 2024.4.3 version compare to 2020.2.3

Post by Lech Kulikowski »

Hello,

1. The option switches to GDI. the most noticeable thing is that the text width will be the same as before.
This option should be set not before loading the report, but at the very beginning of the application, before fonts are loaded.

2. You have VertAlign=Bottom on the HeaderBand of the textboxes in the report.
It used to be wrong in NetCore when exporting to pdf, the text was displayed higher than necessary and appeared as if in the middle of the band.
Now the height alignment works correctly, and the text is pressed to the bottom edge of the header.
On other lines, the alignment is also slightly different, but almost imperceptible.

W didn't see any other problems in the report.

Thank you.
Post Reply