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!
![]() |
DrawHTMLText (8.11) special characters? |
Post Reply ![]() |
Author | |
infrax ![]() Beginner ![]() Joined: 11 Aug 11 Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() Posted: 14 Sep 11 at 7:43AM |
With 7.x version I used this code to print html code:
q.SetHTMLNormalFont("Default", q.AddTrueTypeFont("Arial {1250}", 0)); q.SetHTMLBoldFont("Default", q.AddTrueTypeFont("Arial [Bold] {1250}", 0)); q.SetHTMLItalicFont("Default", q.AddTrueTypeFont("Arial [Italic] {1250}", 0)); q.SetHTMLBoldItalicFont("Default", q.AddTrueTypeFont("Arial [BoldItalic] {1250}", 0)); q.DrawHTMLText(left, top, right, text); And it was working OK, all eastern europe characters were shown. Now with 8.11 version eastern europe characters are not printed OK. In this forum I noticed that there is a bug in DrawHTMLTextBox function. Is this a bug also here, or should I use different code to do this? Thanks
|
|
![]() |
|
infrax ![]() Beginner ![]() Joined: 11 Aug 11 Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
Anyone?
|
|
![]() |
|
Lord Jim ![]() Beginner ![]() ![]() Joined: 07 Sep 11 Location: USA Status: Offline Points: 10 |
![]() ![]() ![]() ![]() ![]() |
You might want to try the 8.12 beta that was released last week. DrawHTMLTextBox does still have some issues, but they did fix a few things.
|
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
What characters in particular are you having problems with ?
I tried German which did not work with 1250 but did work as expected with 1252. Is 1250 the correct code page ? It might be worth trying 1252. The 8.11 version is now fully Unicode so you need to pass in the Unicode version of the characters you want to draw. You can also try AddTrueTypeSubsettedFont() which will work better in QPL 8.11. I will review with the QPL team. Now that QPL is Unicode the {xxxx} system would work differently from QPL 7.xx as you have found. Andrew.
|
|
![]() |
|
infrax ![]() Beginner ![]() Joined: 11 Aug 11 Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
1250 is the correct code page -> east europe.
I tried 8.12 version -> no luck. Played with AddTrueTypeSubsettedFont() -> no luck. Tried other code pages -> no luck. I also tried German characters -> they show OK (with 1252). Can you try it with Slovenian ones? -> ššš ččč žžž I'm using C#. As I undestand all strings in C# are unicode so that shouldn't be a problem. Or not? Thanks
|
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
I have confirmed there is a problem when using Slovenian text with the DrawHTML text function. The 1252 Code page is very similar to the Unicode character mappings which is why German and Norwegian ws wroking well for me.
DrawText is working perfectly well so we should be able to get it working for the 8.12 release.
|
|
![]() |
|
infrax ![]() Beginner ![]() Joined: 11 Aug 11 Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
Ok. Thanks
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store