Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Chinese font and output
  FAQ FAQ  Forum Search   Register Register  Login Login

Chinese font and output

 Post Reply Post Reply
Author
Message
manuel76413 View Drop Down
Beginner
Beginner
Avatar

Joined: 31 Dec 09
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote manuel76413 Quote  Post ReplyReply Direct Link To This Post Topic: Chinese font and output
    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.
Back to Top
DELBEKE View Drop Down
Debenu Quick PDF Library Expert
Debenu Quick PDF Library Expert
Avatar

Joined: 31 Oct 05
Location: France
Status: Offline
Points: 151
Post Options Post Options   Thanks (0) Thanks(0)   Quote DELBEKE Quote  Post ReplyReply Direct Link To This Post 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


Edited by DELBEKE - 03 Jan 10 at 12:27PM
Back to Top
manuel76413 View Drop Down
Beginner
Beginner
Avatar

Joined: 31 Dec 09
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote manuel76413 Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
manuel76413 View Drop Down
Beginner
Beginner
Avatar

Joined: 31 Dec 09
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote manuel76413 Quote  Post ReplyReply Direct Link To This Post 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.
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store