Export pdf---the Chinese characters were garbled

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

Export pdf---the Chinese characters were garbled

Post by wolf1860 » Thu Jun 06, 2019 7:08 am

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: 14460
Joined: Sat Aug 27, 2005 10:28 am
Contact:

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

Post by Sergey Tkachenko » Thu Jun 06, 2019 11:38 am

How are they displayed? As rectangles, or maybe completely wrong?
What font is used for Chinese text?

wolf1860
Posts: 63
Joined: Sat Nov 21, 2015 2:04 am

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

Post by wolf1860 » Fri Jun 07, 2019 2:00 am

Microsoft YaHei is right,the others are displayed as rectangle,the font-name is Arial.

Sergey Tkachenko
Site Admin
Posts: 14460
Joined: Sat Aug 27, 2005 10:28 am
Contact:

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

Post by Sergey Tkachenko » Mon Jun 10, 2019 12:54 pm

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: 63
Joined: Sat Nov 21, 2015 2:04 am

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

Post by wolf1860 » Mon Jun 10, 2019 3:50 pm

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

Post Reply