about font file

Stimulsoft Reports.WEB discussion
Post Reply
287402225@qq.com
Posts: 6
Joined: Tue Dec 10, 2024 1:37 am

about font file

Post by 287402225@qq.com »

hello,I have a question.
I used Stimulsoft. Base. SiFontCollection. AddFontFile to add fonts in the code, which causes the font file to be carried with each access, resulting in a large amount of network downloads. What do I need to do to remove this font file instead of restarting the service

looking forward to your reply
Lech Kulikowski
Posts: 7452
Joined: Tue Mar 20, 2018 5:34 am

Re: about font file

Post by Lech Kulikowski »

Hello,

Sorry, we did not exactly understand your problem. Could you explain your issue in more detail?

Thank you.
287402225@qq.com
Posts: 6
Joined: Tue Dec 10, 2024 1:37 am

Re: about font file

Post by 287402225@qq.com »

Hello,Thanks for your reply.Let me explain:
My language is Chinese, and I am working on a PDF export function. I used the code StiNetCoreReportResponse. ResponseAsPdf() to export, but there is no font file in the exported file, resulting in garbled characters and inability to display Chinese properly. So I used the code Stimulsoft. Base. SiFontCollection. AddFontFile() to add a font file, and then it was able to display Chinese normally. But this will result in a doubling of the time required to generate PDF files, which is unacceptable. How can I reduce the time required to generate PDF files after using font files? Or can I dynamically add font files by removing the font file from the environment after generating the PDF file, without having to render the font file every time it is exported. The main problem is that the font file is too large. I know it's rendering the font, but is there any way to indirectly bypass this issue? Not every time you export a PDF, you need that font file. For example, the code Stimulsoft. Base. SiFontCollection. MoveFontFile(), but I haven't found this method
Post Reply