Export pdf---the Chinese characters were garbled

General TRichView support forum. Please post your questions here
Post Reply
wolf1860
Posts: 118
Joined: Sat Nov 21, 2015 2:04 am

Export pdf---the Chinese characters were garbled

Post by wolf1860 »

The third-party export demo(SynPdf),the synPdf pack is the latest version as readme.txt,Everything is right except Chinese characters were garbled.Any ideas? Thanks!
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Export pdf---the Chinese characters were garbled

Post by Sergey Tkachenko »

How are they displayed? As rectangles, or maybe completely wrong?
What font is used for Chinese text?
wolf1860
Posts: 118
Joined: Sat Nov 21, 2015 2:04 am

Re: Export pdf---the Chinese characters were garbled

Post by wolf1860 »

Microsoft YaHei is right,the others are displayed as rectangle,the font-name is Arial.
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Export pdf---the Chinese characters were garbled

Post by Sergey Tkachenko »

As far as I know, Arial does not include Chinese characters.
They are displayed in TRichView or browsers because of font substitution (when a character cannot be found in a font, it is displayed from some other font that has this character).
Sorry, I do not know how font substitution for missing characters work in PDF in general and in SynPDF specifically. Please address this question to SynPDF developer.
wolf1860
Posts: 118
Joined: Sat Nov 21, 2015 2:04 am

Re: Export pdf---the Chinese characters were garbled

Post by wolf1860 »

Thanks,as u said,I changed the font-name to "microsoft YaHei",and I got the right file:)
Post Reply