web form export pdf error in Traditional Chinese Font
Hello,
when May 22 2009,I ask a question for traditional chinese word export question.
It still error. I thank it may be Traditional Chinese font name's problem.
Because when Open pdf file,Acrobat reader show error message:Can not find or create Font "dfghgf978077#$#$".(<---error name.)
you can download Traditional Chinese font for test.
http://www.jack168.com/download/kaiu.ttf (font name in chinese:"標楷體")
Thanks.
when May 22 2009,I ask a question for traditional chinese word export question.
It still error. I thank it may be Traditional Chinese font name's problem.
Because when Open pdf file,Acrobat reader show error message:Can not find or create Font "dfghgf978077#$#$".(<---error name.)
you can download Traditional Chinese font for test.
http://www.jack168.com/download/kaiu.ttf (font name in chinese:"標楷體")
Thanks.
Comments
I've downloaded and installed this font. It appears in my font list as "DFKai-SB". I can use it in the Text object, and export to PDF with no problems.
Hi,AlexTz:
Because your operating system is the English version,but we are using the Chinese version.
So,when you call "Font.Name" ,the value is "DFKai-SB".But when we call it,the value is "標楷體".
To fix this problem, when call "Font.Name",it must get the english font name in any operating system.
But I don't know how to achieve it.
Thanks, we will try to find a workaround for this. I will let you know when we finish.
My problem is the same as Jeffery Lee.
Waiting for FlexTz's solution.
By the way,I have see Chinese (Simplified).frl in Language Folder, When will you support Traditional Chinese. Thank you.
Would you need help for transfer Chinese(Simplified).frl to Chinese(Traditional).frl ?
Chinese PDF font should work well now.
I use simplified chinese operating system,
but when i export pdf,the chinese characters is incorrect.
I use SimSun font. After export the font name is not SimSun,it is #5B8B#4F53.
So pdf about chinese characters is blank.
please check attachment!
Do you use latest FR.Net version? We have fixed this issue some time ago.
I have used the lasted version!
After export PDF,the manually modified!
Please tell me exact version (including build number) of FastReport.Net which you use.
the fastreport i used,its building number is FRNet_1_57_Pro.
I download it on July 30.
Font font = new Font("SimSun", 10);
MessageBox.Show(font.FontFamily.GetName(0));
I don't have chinese Windows and can't check that.
the result is "宋体",please check the attachment.
thank you.
Font font = new Font("SimSun", 10);
MessageBox.Show(font.FontFamily.GetName(1033));
the result is "SimSun".
Cehck the attachment!
I can find it in 'my Controls' panel.where?strange.
I use traditional chinese operating system,
I export to pdf, the chinese characters is ok when text object's font name is MingLiu(chinesd font name is '細明體'),
but it is blank when text object's font name is Arial(default font).
report preview & print is ok.
I use the lastest version (2009.08.05)
Arial font does not contain Chinese symbols. When you use it in Windows application to draw some text, Windows does the thing called "font substitution". It searches for another font that contains Chinese chars and uses it instead of Arial to draw these chars (note that latin chars are still drawn using Arial). This is complex thing and it's hard to implement it in the PDF export. The solution is to use specific font to display chinese symbols, instead of Arial.
If i use Chinese font MingLiu(細明體), set font size = 11pt, export to pdf is ok,
But when i design or preview report, text will be clipped a little on top edge.
It's like that drawing text using GDI not GDI+, but i call follow statement when program start: Application.SetCompatibleTextRenderingDefault(false).
If you use Arial font, it's ok.
But windows forms control is ok using same font when call Application.SetCompatibleTextRenderingDefault(false) in program start.