The PDF font of the report changes upon export

Stimulsoft Reports.BLAZOR discussion
Post Reply
toananha22
Posts: 10
Joined: Thu Jul 27, 2023 2:59 am

The PDF font of the report changes upon export

Post by toananha22 »

Hello,

My report is currently using the Times New Roman font, but after exporting to PDF using StiPdfExportService.ExportPdf(), it automatically switches to another font, seemingly Roboto. Even when using the Print function in the viewer, the same issue occurs. Do I need to set something up?

Thanks.
Max Shamanov
Posts: 990
Joined: Tue Sep 07, 2021 10:11 am

Re: The PDF font of the report changes upon export

Post by Max Shamanov »

Hello,

Have you loaded the Times New Roman font into the StiFontCollection?

Thank you.
toananha22
Posts: 10
Joined: Thu Jul 27, 2023 2:59 am

Re: The PDF font of the report changes upon export

Post by toananha22 »

Hello,

I tried it and it worked.

Thank you.
Max Shamanov
Posts: 990
Joined: Tue Sep 07, 2021 10:11 am

Re: The PDF font of the report changes upon export

Post by Max Shamanov »

Hello,

You are welcome!
Post Reply