Print Page | Close Window

Chinese font and output

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1301
Printed Date: 27 Jun 25 at 9:32AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Chinese font and output
Posted By: manuel76413
Subject: Chinese font and output
Date Posted: 31 Dec 09 at 5:23PM

I began to use quickpdf 717 demo version two days ago, and I use Simple Chinese Character in many cases. Since I'm not too falimily with quick pdf library, so although many FONT relative topics in the reference are mentioned, like CJK and truetype font, But I failed after tried many ways.

So, could somebody kindly enough to tell me how to output Simple Chinese Character use QuickPDF.
 
Thanks in advance.



Replies:
Posted By: DELBEKE
Date Posted: 03 Jan 10 at 12:26PM
The pdf specifications don't allow unicoded string. The idea is to load in the the pdf a subset of the unicode font. This subset can contain 255 characters at the maximum.
You can use AddSubsettedFont for that purpose.
When you want to draw a text whit this font, use GetSubsetString(Text) instead of the text itself


Posted By: manuel76413
Date Posted: 05 Jan 10 at 12:15PM

I tried to use AddSubsettedFont/GetSubsetString function, but that didn't work correctly.

Chinese characters is display squares.


Posted By: Ingo
Date Posted: 05 Jan 10 at 2:11PM
Hi Manuel!

My knowledge in this kind isn't very special.
The described problem has to do with the unicode-transformation, ansistrings, utf-8, ...
In a string you can't insert a unicode-value.

Cheers, Ingo


Posted By: manuel76413
Date Posted: 06 Jan 10 at 11:07AM

Ingo, Thanks for your reply, maybe QuickPDF still doesn't solve this problem.

AddCJKFont function only can add  one type of Japanese font.
so, I think this cannot solve simply with AddSubsettedFont and GetSubsetString function.
 
Thanks again.
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk