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!
TextOut and TextWidth |
Post Reply |
Author | |
mauricef
Beginner Joined: 23 May 17 Location: UK Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 23 May 17 at 3:44PM |
I'm building a PDF using the canvas, so I'm calling GetCanvasDC and LoadFromCanvasDC, and in between have a series of calls to Canvas.TextOut. The text being written to the canvas needs to be right-aligned so I'm using Canvas.TextWidth to calculate the start offset of the text in relation to the right-hand edge of the page. I have two distinct issues with this.
Firstly TextWidth doesn't seem to be very accurate. The longer the text being printed, the bigger the gap I have between the end of the text and the right-hand edge of the page. Secondly if the text being printed is only a single character then it prints the text in a tiny font. If two characters the font is slightly bigger, and if three characters or more it prints in the correct font size.
Has anyone else experienced problems like this? |
|
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