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
Chinese not display in export pdf
-
- Posts: 6271
- Joined: Tue Mar 20, 2018 5:34 am
Re: Chinese not display in export pdf
Hello,
Please try to add font in the font collection:
Stimulsoft.Base.StiFontCollection.AddFontFile("font.ttf");
Thank you.
Please try to add font in the font collection:
Stimulsoft.Base.StiFontCollection.AddFontFile("font.ttf");
Thank you.
Re: Chinese not display in export pdf
i add this in my code before render report,but it doesn` t work.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.
Code: Select all
StiFontCollection.AddFontFile(Path.Combine(Environment.CurrentDirectory, @"..\..\platform\runtime\cloudprint\simsun.ttc"));
-
- Posts: 6271
- Joined: Tue Mar 20, 2018 5:34 am
Re: Chinese not display in export pdf
Hello,
Please send us sample project that reproduce the issue for analysis.
Thank you.
Please send us sample project that reproduce the issue for analysis.
Thank you.
Re: Chinese not display in export pdf
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
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
- Attachments
-
- chinese font.mrt
- (5.59 KiB) Downloaded 103 times
-
- Posts: 6271
- Joined: Tue Mar 20, 2018 5:34 am
Re: Chinese not display in export pdf
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.
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.