<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Debenu Quick PDF Library - PDF SDK Community Forum : TextOut and TextWidth</title>
  <link>http://www.quickpdf.org/forum/</link>
  <description><![CDATA[This is an XML content feed of; Debenu Quick PDF Library - PDF SDK Community Forum : I need help - I can help : TextOut and TextWidth]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 09 Jun 2026 00:21:34 +0000</pubDate>
  <lastBuildDate>Tue, 23 May 2017 15:44:41 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.01</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.quickpdf.org/forum/RSS_post_feed.asp?TID=3468</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Debenu Quick PDF Library - PDF SDK Community Forum]]></title>
   <url>http://www.quickpdf.org/forum/forum_images/QPDF_Forum_Title.png</url>
   <link>http://www.quickpdf.org/forum/</link>
  </image>
  <item>
   <title><![CDATA[TextOut and TextWidth : I&amp;#039;m building a PDF using...]]></title>
   <link>http://www.quickpdf.org/forum/textout-and-textwidth_topic3468_post13793.html#13793</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2951">mauricef</a><br /><strong>Subject:</strong> 3468<br /><strong>Posted:</strong> 23 May 17 at 3:44PM<br /><br />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.<div><br></div><div>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.<div><br></div><div>Has anyone else experienced problems like this?</div></div>]]>
   </description>
   <pubDate>Tue, 23 May 2017 15:44:41 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/textout-and-textwidth_topic3468_post13793.html#13793</guid>
  </item> 
 </channel>
</rss>