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!
![]() |
Font Size not working |
Post Reply ![]() |
Author | |
softwaredev ![]() Beginner ![]() Joined: 01 Sep 09 Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() Posted: 01 Sep 09 at 2:52PM |
Hello fellow forum members,
Am trying to use QuickPDF API as an ActiveX via VB6. Cannot get the drawn text to be the font size I need. Am passing 9.75 but it seems to be printing at higher value more like 11.5 or something.
Wondering what is the smallest font size I could go to.
Code below ... Can anyone tell me what I am doing wrong? Thks!
Another similar question. Earlier was using the QP.SetFontFlags to set the font to Bold but it did not work for me, so have changed to include the Bold inside the Font-Name itself like (Arial Narrow Bold Italic) and that seems to work. Is that the right way to do it?
Edited by softwaredev - 01 Sep 09 at 4:16PM |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi!
You have to select the font after adding it and before writing. If you want to set the textcolour you should use SetTextColor. Cheers, Ingo |
|
![]() |
|
Shotgun Tom ![]() Senior Member ![]() ![]() Joined: 14 Aug 09 Location: Phoenix, AZ Status: Offline Points: 53 |
![]() ![]() ![]() ![]() ![]() |
I tested your code in VB6 and it works okay. One thought... I assume you're viewing your out.pdf in Adobe Reader, correct? Check your resolution preference in Reader. You can access it from Reader by pressing Ctrl-K. Choose Page Display. Check your resolution. If you are using a higher dpi resolution than your system setting the font will appear larger but is actually correct.
One other quick note on your code... not sure why you have SetLineColor method included. If you want to set the color of the text you would need to use SetTextColor method.
Tom
|
|
![]() |
|
softwaredev ![]() Beginner ![]() Joined: 01 Sep 09 Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() |
Found my problem, replying here for the benefit of the forum.
In my code the user was able to select the Font, hence if they would select Arial it was getting set to "Arial Regular". Which in turn would cause the Font to appear funny.
Fixed!
|
|
![]() |
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