Print Page | Close Window

Unicode characters from VFP9

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=3275
Printed Date: 30 Apr 24 at 5:47AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Unicode characters from VFP9
Posted By: Cerceris
Subject: Unicode characters from VFP9
Date Posted: 25 Feb 16 at 10:48AM
I use Debenu Quick PDF Library 11.11 with Visual Foxpro 9.
I do not have the option to send directly to PDF Unicode characters.
Iwant to see DrawHtmlText. Ineed to show
and ♂.

I used

    QP.NewDocument()

    QP.SetPageSize("A4")

    QP.SetOrigin(1)

    FontID1 = QP.AddTrueTypeFont("Times New Roman", 1)

   QP.SetHTMLNormalFont("Default", FontID1)

   QP.DrawHTMLText(20, 20, 150, "#2640 #2642")

Displays  "#2640 #2642” and not ♀ ♂

Is there any possibility to succeed?


Thanks






Replies:
Posted By: Ingo
Date Posted: 25 Feb 16 at 10:35PM
Hi Cerceris;

i don't have experiences with DrawHTMLText but i know that your string doesn't contain the correct value for the male- and female-symbol in html-code.
The correct html-code in this case is:
for female:
♀
and for male:
♂ 

The bad thing is that DrawHTMLText supports only a subset of mainly style tags and not symbols.
In your case (IDE without unicode support and there#s only need to get two signs) i would create two small images using them instead of real characters.

Cheers and welcome here,
Ingo



-------------
Cheers,
Ingo



Posted By: Cerceris
Date Posted: 26 Feb 16 at 6:47AM
I tried, but again unsuccessfully.
I will use your advice with two small images.

Thank you for the quick reply,

Cerceris



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