Print Page | Close Window

Font Character Mapping

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=1416
Printed Date: 06 May 25 at 7:25AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Font Character Mapping
Posted By: chandy21
Subject: Font Character Mapping
Date Posted: 20 Apr 10 at 3:09AM
Hi all,
    I have a document I would like to add some content to.
    I have selected the Font, but this is a Subsetted Font.

    When I try to do a DrawText(), my characters come out all wrong, as the character mapping for the Font is not matched. For example, the Font has T = p, R = x, Y = s. When I try to DrawText("TRY");, I get "pxs" on the page.

    I have tried QP.GetSubsetString("TRY") after selecting the Font, but it returns "TRY". I am guessing this function works only with subsetted fonts I have added. I haven't added this Font, it was already in the Document.

    If I "GetPageText", I read the correct text, so QuickPDF must know the mapping somewhere.

    How can I get the character codes I wish to use in my DrawText() so that I get the correct characters out??

Thanks in advance,
Ando.



Replies:
Posted By: chandy21
Date Posted: 25 Apr 10 at 1:12PM
Does anyone have any ideas or direction on this?

Anyone know how to find the Character Mapping?


Posted By: Ingo
Date Posted: 25 Apr 10 at 2:42PM
Hi!

Have a look in the font section of the online reference.
Some of the Add...-functions...?
Perhaps AddSubsettedFont?

BTW: I think you don't know the search-function above???
Do the time-unlimited search with AddSubsettedFont.
Here are the first results (and there are a lot more):
http://www.quickpdf.org/forum/forum_posts.asp?TID=1407&KW=AddSubsettedFont&PID=6367&title=cbuilder-2009-with-activex-not-working#6367
http://www.quickpdf.org/forum/forum_posts.asp?TID=1301&KW=AddSubsettedFont&PID=5984&title=chinese-font-and-output#5984
http://www.quickpdf.org/forum/forum_posts.asp?TID=1247&KW=AddSubsettedFont&PID=5712&title=greek-characters-support#5712
http://www.quickpdf.org/forum/forum_posts.asp?TID=1183&KW=AddSubsettedFont&PID=5458&title=problem-with-russian-text#5458
http://www.quickpdf.org/forum/forum_posts.asp?TID=1094&KW=AddSubsettedFont&PID=5415&title=support-chinese#5415


Cheers, Ingo



Posted By: chandy21
Date Posted: 26 Apr 10 at 3:26AM
Hi Ingo, I had not actually noticed the "Any Date" option before in the advanced search.
Thanks for the tip. I will go through the results.

Regards,
Ando.



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