Page 1 of 1
Chinese not display in export pdf
Posted: Tue Jul 28, 2020 9:53 am
by simon ren
I have Chinese Character in my report and my computer system also has SimSun font.
but when I export my report to pdf. i open the pdf in browser and Adobe reader.
the Chinese Character not display.
here is my report.mrt , report data, my code
report.mrt
report data
my code
- mycode.png (29.96 KiB) Viewed 2513 times
Re: Chinese not display in export pdf
Posted: Wed Jul 29, 2020 2:52 pm
by Lech Kulikowski
Hello,
Please try to add font in the font collection:
Stimulsoft.Base.StiFontCollection.AddFontFile("font.ttf");
Thank you.
Re: Chinese not display in export pdf
Posted: Wed Aug 05, 2020 3:18 am
by simon ren
Lech Kulikowski wrote: ↑Wed Jul 29, 2020 2:52 pm
Hello,
Please try to add font in the font collection:
Stimulsoft.Base.StiFontCollection.AddFontFile("font.ttf");
Thank you.
i add this in my code before render report,but it doesn` t work.
Code: Select all
StiFontCollection.AddFontFile(Path.Combine(Environment.CurrentDirectory, @"..\..\platform\runtime\cloudprint\simsun.ttc"));
Re: Chinese not display in export pdf
Posted: Wed Aug 05, 2020 7:29 am
by Lech Kulikowski
Hello,
Please send us sample project that reproduce the issue for analysis.
Thank you.
Re: Chinese not display in export pdf
Posted: Thu Jan 20, 2022 7:29 am
by ulli82
Hello,
any news about this issue? We have a similar problem. In mixed texts (latin and chinese), the chinese characters are not shown in exported PDF if the font does not support chinese characters. But when I switch Text Render Mode to WYSIWYG, the chinese characters are shown. In Standard Mode, the font substitution is not working.
Regards
Re: Chinese not display in export pdf
Posted: Thu Jan 20, 2022 11:14 am
by Lech Kulikowski
Hello,
Most of the standard fonts do not contain national characters. In this case, Windows uses the "font fallback". This algorithm is very complicated and, therefore, is not realized in the exports. To output national characters, please, use the font which contains all necessary characters. For example, the "Arial Unicode MS" font contains many national characters.
Thank you.