Bold fonts not working in pdf export

Stimulsoft Reports.NET discussion
Post Reply
danielSlt
Posts: 3
Joined: Thu Aug 04, 2022 10:28 am

Bold fonts not working in pdf export

Post by danielSlt »

Hello,

I am trying to set the fonts in my report via code and I have encountered some problems here.
I'm using Stimulsoft.Reports.Net with the version 2022.1.5.

Basically I tried two different ways of changing the fonts in my report.

1. I added the fonts via code
Image

and changed the font for each text component in code also
Image

I added both the regular and the bold font to the ressource and also changed the settings to allow the import of system libraries.

2. I tried to add the fonts to the resource of the report file and changed the font there. I also allowed the mentioned option here.
The result was that the change of the fonts was completely ignored.

When I export the report as docx file everything works fine using the first option I tried.
Attachments
DevicePropertiesData.mrt
(19.2 KiB) Downloaded 74 times
setFonts.JPG
setFonts.JPG (30.43 KiB) Viewed 731 times
setupFonts.jpg
setupFonts.jpg (25.78 KiB) Viewed 731 times
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Bold fonts not working in pdf export

Post by Lech Kulikowski »

Hello,

Please send us a sample that reproduces the issue for analysis.

Thank you.
danielSlt
Posts: 3
Joined: Thu Aug 04, 2022 10:28 am

Re: Bold fonts not working in pdf export

Post by danielSlt »

Hello,

I have attached a sample project which reproduces the issue.
I removed my licence and the used NuGet feed for confidentional reasons.

The fonts are also changed but the issue is the same here.
Attachments
SampleProject.zip
(27.03 MiB) Downloaded 77 times
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Bold fonts not working in pdf export

Post by Lech Kulikowski »

Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you.
#7673
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Bold fonts not working in pdf export

Post by Lech Kulikowski »

Hello,

We couldn't reproduce the issue. Please check the last version. In the 2022.2.x version, were a lot of improvements with fonts loading.

Thank you.
Attachments
184140550-2e9a2485-c9fa-434c-a479-9fbe4f3fdcb1.png
184140550-2e9a2485-c9fa-434c-a479-9fbe4f3fdcb1.png (33.58 KiB) Viewed 676 times
danielSlt
Posts: 3
Joined: Thu Aug 04, 2022 10:28 am

Re: Bold fonts not working in pdf export

Post by danielSlt »

Hello,

thank you for your investigation.
Unfortunately we have to use the mentioned version.

Thank you for your support.
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Bold fonts not working in pdf export

Post by Lech Kulikowski »

Hello,

You are welcome.
Post Reply