Page 1 of 1

Major difference between font size in 2024.4.3 version compare to 2020.2.3

Posted: Tue Nov 12, 2024 10:00 pm
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

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

Posted: Wed Nov 13, 2024 9:09 pm
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.

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

Posted: Thu Nov 14, 2024 12:33 am
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

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

Posted: Thu Nov 14, 2024 4:00 pm
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.