#1 2013-12-13 07:20:35

hawkx
Member
Registered: 2013-12-13
Posts: 2

Chinese display error use RenderMetaFile

System: Windows XP
Delphi Version: 7
SynPDF Version: 1.18
QuickReport Version: 3.5

PDF file generated by SynPDF, the Chinese characters can not display.

I use the font SimSun in my quick report, I found that the function TTFFontPostcriptName can not get right postscript name of font, instead of '???'

TPdfDocument.TTFFontPostcriptName(aFontIndex: integer; AStyle: TFontStyles; const ALogFont: TLogFontW): PDFString;

I don't know why the function returns '???', it should return 'SimSun' instead.

Please forgive my broken English.

Please help, thanks!

Offline

#2 2013-12-13 15:17:00

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,552
Website

Re: Chinese display error use RenderMetaFile

What is the low-level postscript name within the TTF?
Could you please use the debugger and retrieve it?

I was supposing that the Postcript font name should be using only plain ASCCI 7 bit latin characters, but sounds like if it is not the case.
What is the correct TTF field to be used in order to retrieve 'SimSun'?

Offline

#3 2013-12-16 06:13:47

hawkx
Member
Registered: 2013-12-13
Posts: 2

Re: Chinese display error use RenderMetaFile

The font file is simsun.ttc, the font name is '宋体', the postscript name is 'SimSun'.

I dont know where to find the debugger, please give me a link to get it.

Last edited by hawkx (2013-12-16 09:43:15)

Offline

#4 2014-07-09 09:22:11

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,552
Website

Re: Chinese display error use RenderMetaFile

We managed to fix incorrect Postscript font name retrieval e.g. for Asiatic fonts.
See http://synopse.info/fossil/info/538e87801df45

I suspect it will fix your issue.

I've also updated the official synpdf.zip archive, to include this fix, which sounds mandatory for a lot of non-western users!

Feedback is welcome!

Offline

Board footer

Powered by FluxBB