<?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 : Embedding font subset vs. text align</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 : Embedding font subset vs. text align]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 10 May 2026 09:31:24 +0000</pubDate>
  <lastBuildDate>Wed, 27 Mar 2013 00:45:52 +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=2526</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[Embedding font subset vs. text align :  The upcoming QPL 9.14 Beta 2...]]></title>
   <link>http://www.quickpdf.org/forum/embedding-font-subset-vs-text-align_topic2526_post10648.html#10648</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2526<br /><strong>Posted:</strong> 27 Mar 13 at 12:45AM<br /><br />The upcoming QPL 9.14 Beta 2 will support justified text using TrueType subsetted fonts that also include foreign characters such as German and French characters with diacritics etc.<div><br></div><div><div><span style="line-height: 1.4;">Andrew.</span></div></div><span style="font-size:10px"><br /><br />Edited by AndrewC - 27 Mar 13 at 1:05AM</span>]]>
   </description>
   <pubDate>Wed, 27 Mar 2013 00:45:52 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/embedding-font-subset-vs-text-align_topic2526_post10648.html#10648</guid>
  </item> 
  <item>
   <title><![CDATA[Embedding font subset vs. text align :   So my last option was to use...]]></title>
   <link>http://www.quickpdf.org/forum/embedding-font-subset-vs-text-align_topic2526_post10576.html#10576</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2193">LuProch</a><br /><strong>Subject:</strong> 2526<br /><strong>Posted:</strong> 07 Mar 13 at 3:31PM<br /><br />So my last option was to use AddStandardFont, but I found out that some letters with diacritics are missing in the resulting PDF file. I'm doomed.<br><br>Code snippet:<br>(I put it in a picture, because my browser didn't display the letters with diacritics correctly either.)<br><a href="http://s12.postimage.org/voeep7qn1/Diacritics_code.png" target="_blank">http://s12.postimage.org/voeep7qn1/Diacritics_code.png</a><br><br>Result:<br><a href="http://s23.postimage.org/kpds3xshn/Diacritics.png" target="_blank">http://s23.postimage.org/kpds3xshn/Diacritics.png</a><br><span style="font-size:10px"><br /><br />Edited by LuProch - 07 Mar 13 at 3:43PM</span>]]>
   </description>
   <pubDate>Thu, 07 Mar 2013 15:31:30 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/embedding-font-subset-vs-text-align_topic2526_post10576.html#10576</guid>
  </item> 
  <item>
   <title><![CDATA[Embedding font subset vs. text align :   In summary:- AddTrueTypeFont:...]]></title>
   <link>http://www.quickpdf.org/forum/embedding-font-subset-vs-text-align_topic2526_post10563.html#10563</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2193">LuProch</a><br /><strong>Subject:</strong> 2526<br /><strong>Posted:</strong> 05 Mar 13 at 2:53PM<br /><br />In summary:<br>- AddTrueTypeFont: Produces too big PDF files with embedded fonts.<br>- AddTrueTypeSubsettedFont: Justification of HTML text doesn't work.<br>- AddStandardFont: Offers only the few standard fonts. Also <a href="http://www.quickpdf.org/forum/addstandardfont-and-text-height_topic2556.html" target="_blank">first line of text is shifted up and line spacing is smaller</a>.<br><br>I'm starting to be a bit desperate here... Nevertheless, thank you both for your help. I hope this issue will be eventually resolved in Quick PDF library.<br><span style="font-size:10px"><br /><br />Edited by LuProch - 07 Mar 13 at 11:25AM</span>]]>
   </description>
   <pubDate>Tue, 05 Mar 2013 14:53:38 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/embedding-font-subset-vs-text-align_topic2526_post10563.html#10563</guid>
  </item> 
  <item>
   <title><![CDATA[Embedding font subset vs. text align : This code is working correctly...]]></title>
   <link>http://www.quickpdf.org/forum/embedding-font-subset-vs-text-align_topic2526_post10562.html#10562</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2526<br /><strong>Posted:</strong> 05 Mar 13 at 11:05AM<br /><br />This code is working correctly<div><br></div><div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int ID = QP.AddStandardFont(8); &nbsp; &nbsp; &nbsp; // Standard Font = Times New Roman</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.SetHTMLNormalFont("Default", ID);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; double w = 180;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; double ypos = 10;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.DrawBox(10, 0, w, 800, 0);</div><div><br></div><div><span style="line-height: 1.4;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.DrawHTMLText(10.0, ypos, w, "&lt;font size=\"20pt\"&gt;&lt;p align=\"justified\"&gt;dddddddd ddddd dddd ddddd ddddd ddddd dddddddddddd&lt;/p&gt;&lt;/font&gt;");</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ypos += 180;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.SaveToFile("out.pdf");</div></div><div><br></div><div><br></div><div>I believe it is because the&nbsp;<span style=": rgb251, 251, 253; line-height: 1.4;">AddTrueTypeSubsettedFont is creating a Composite font and Composite fonts do not support the PDF WordSpacing operator that we are using to space the text out correctly. &nbsp;I will need to spend some time to see if I can work on a work-around for subsetted fonts but it the existing HTML code could require some fundamental changes for rendering justified text.</span></div><div><span style=": rgb251, 251, 253; line-height: 1.4;"><br></span></div><div><span style=": rgb251, 251, 253; line-height: 1.4;">Andrew</span></div>]]>
   </description>
   <pubDate>Tue, 05 Mar 2013 11:05:39 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/embedding-font-subset-vs-text-align_topic2526_post10562.html#10562</guid>
  </item> 
  <item>
   <title><![CDATA[Embedding font subset vs. text align : I did some more experiments with...]]></title>
   <link>http://www.quickpdf.org/forum/embedding-font-subset-vs-text-align_topic2526_post10559.html#10559</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2193">LuProch</a><br /><strong>Subject:</strong> 2526<br /><strong>Posted:</strong> 05 Mar 13 at 10:25AM<br /><br />I did some more experiments with the PDF file created with your code (w = 200).<br><br><u>CREATING</u><br>When I create the file with QuickPDF DLL 9.11, 9.12 or 9.13, it doesn't change anything.<br><br><u>DISPLAYING</u><br>I tried to view the created file in Adobe, Foxit, Chrome and also with the Quick PDF Library application on the "PDF Preview" tab.<br><br>Justification is not displayed correctly in:<br>- Adobe Reader 10.1.6<br>- Foxit Reader 4.3.0.1110<br>- Google Chrome 25.0.1364.152<br>- Quick PDF Library application 9.11<br>- Quick PDF Library application 9.12<br><br>Justification is displayed correctly in:<br>- Quick PDF Library application 9.13<br><br><u>PRINTING</u><br>I tried to print the created file to printer with PrintDocument function from Quick PDF DLL.<br><br>Justification is not printed correctly with:<br>- Quick PDF DLL 9.11<br>- Quick PDF DLL 9.12<br><br>Justification is printed correctly with:<br>- Quick PDF DLL 9.13<br>]]>
   </description>
   <pubDate>Tue, 05 Mar 2013 10:25:45 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/embedding-font-subset-vs-text-align_topic2526_post10559.html#10559</guid>
  </item> 
  <item>
   <title><![CDATA[Embedding font subset vs. text align : I later realised that your measurements...]]></title>
   <link>http://www.quickpdf.org/forum/embedding-font-subset-vs-text-align_topic2526_post10555.html#10555</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2526<br /><strong>Posted:</strong> 04 Mar 13 at 12:13PM<br /><br />I later realised that your measurements were in mm.&nbsp;<div><br></div><div>AddTrueTypeSubsettedFont - should be 0. &nbsp;I have a bad habit of using 1 thinking that it will embed the font - but that is what the function is doing anyway.</div><div><br></div><div>I also discovered the same behaviour with the various widths which is quite strange. &nbsp;I haven't been able to try down why it doesn't work as expected.</div><div><br></div><div>I will keep working on it but have many other cases I am working on at the same time.</div><div><br></div><div>Andrew.</div>]]>
   </description>
   <pubDate>Mon, 04 Mar 2013 12:13:36 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/embedding-font-subset-vs-text-align_topic2526_post10555.html#10555</guid>
  </item> 
  <item>
   <title><![CDATA[Embedding font subset vs. text align :  edvoigt:I reported the issue...]]></title>
   <link>http://www.quickpdf.org/forum/embedding-font-subset-vs-text-align_topic2526_post10554.html#10554</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2193">LuProch</a><br /><strong>Subject:</strong> 2526<br /><strong>Posted:</strong> 04 Mar 13 at 11:58AM<br /><br />edvoigt:<br>I reported the issue to Debenu.<br><br>AndrewC:<br>I tried your code and played a little with the values. I changed all the "ypos += 180;" to "ypos += 110;", because spaces between texts were too big. Then I changed width and discovered a strange behavior: Justification seems to work when the width is small (w = 150), but not with bigger widths (w = 200).<br><a href="http://s21.postimage.org/ibmlxvznb/w150_y110.png" target="_blank">Width 150</a><br><a href="http://s23.postimage.org/8y1clxpor/w200_y110.png" target="_blank">Width 200</a><br><br>PS: Why did you use AddTrueTypeSubsettedFont with third parameter set to "1"? Documentation says it should be "0". (I tried both and it didn't affect the justification.)<br><a href="http://www.quickpdflibrary.com/help/quickpdf/AddTrueTypeSubsettedFont.php" target="_blank">AddTrueTypeSubsettedFont</a><br><br>PPS: I forgot to mention in my first post, that my values are in millimetres. Yours are in points. (I again tried both and it doesn't affect the justification, once you convert the values.)<br><a href="http://www.quickpdflibrary.com/help/quickpdf/SetMeasurementUnits.php" target="_blank">SetMeasurementUnits</a><br><span style="font-size:10px"><br /><br />Edited by LuProch - 04 Mar 13 at 12:07PM</span>]]>
   </description>
   <pubDate>Mon, 04 Mar 2013 11:58:21 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/embedding-font-subset-vs-text-align_topic2526_post10554.html#10554</guid>
  </item> 
  <item>
   <title><![CDATA[Embedding font subset vs. text align : Can you try the following code...]]></title>
   <link>http://www.quickpdf.org/forum/embedding-font-subset-vs-text-align_topic2526_post10549.html#10549</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2526<br /><strong>Posted:</strong> 03 Mar 13 at 7:57AM<br /><br />Can you try the following code which will make it simpler to understand and debug.<div><br></div><div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.SetOrigin(1);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int ID = QP.AddTrueTypeSubsettedFont("Times New Roman", "abcd ", 1);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.SetHTMLNormalFont("Default", ID);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; double w = 150;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; double ypos = 10;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.DrawBox(10, 0, w, 800, 0);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.SetTextSpacing(-10);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.DrawHTMLText(10.0, ypos, w, "&lt;font size=\"20pt\"&gt;&lt;p align=\"left\"&gt;aaaaaaaa aaaaa aaaa aaaaa aaaaa aaaaa aaaaaaaaaaaa&lt;/p&gt;&lt;/font&gt;");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ypos += 180;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.DrawHTMLText(10.0, ypos, w, "&lt;font size=\"20pt\"&gt;&lt;p align=\"center\"&gt;bbbbbbbb bbbbb bbbb bbbbb bbbbb bbbbb bbbbbbbbbbbb&lt;/p&gt;&lt;/font&gt;");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ypos += 180;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.DrawHTMLText(10.0, ypos, w, "&lt;font size=\"20pt\"&gt;&lt;p align=\"right\"&gt;cccccccc ccccc cccc ccccc ccccc ccccc cccccccccccc&lt;/p&gt;&lt;/font&gt;");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ypos += 180;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.DrawHTMLText(10.0, ypos, w, "&lt;font size=\"20pt\"&gt;&lt;p align=\"justified\"&gt;dddddddd ddddd dddd ddddd ddddd ddddd dddddddddddd&lt;/p&gt;&lt;/font&gt;");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ypos += 180;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.SaveToFile("out.pdf");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Process.Start("out.pdf");</div></div>]]>
   </description>
   <pubDate>Sun, 03 Mar 2013 07:57:31 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/embedding-font-subset-vs-text-align_topic2526_post10549.html#10549</guid>
  </item> 
  <item>
   <title><![CDATA[Embedding font subset vs. text align : Hi,you are right. With Drawtext...]]></title>
   <link>http://www.quickpdf.org/forum/embedding-font-subset-vs-text-align_topic2526_post10540.html#10540</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1569">edvoigt</a><br /><strong>Subject:</strong> 2526<br /><strong>Posted:</strong> 01 Mar 13 at 3:51PM<br /><br />Hi,<br><br>you are right. With Drawtext you have more to do (splitting as you assume), because you can't use text with different styles as a unit.<br><br>Sorry, I see no easy way. But you should the wrong working "justified" report as issue to Debenu.<br><br>Werner<br>]]>
   </description>
   <pubDate>Fri, 01 Mar 2013 15:51:07 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/embedding-font-subset-vs-text-align_topic2526_post10540.html#10540</guid>
  </item> 
  <item>
   <title><![CDATA[Embedding font subset vs. text align : DrawHTMLtext only works with &amp;#034;justified&amp;#034;,...]]></title>
   <link>http://www.quickpdf.org/forum/embedding-font-subset-vs-text-align_topic2526_post10539.html#10539</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2193">LuProch</a><br /><strong>Subject:</strong> 2526<br /><strong>Posted:</strong> 01 Mar 13 at 3:38PM<br /><br />DrawHTMLtext only works with "justified", not with "justify".<br>And I need DrawHTMLtext to draw text, which has different parts in different font styles (normal/bold/italic/underline). If I wanted to use DrawText, I would have to split the text and write each part separately, am I right?<br>]]>
   </description>
   <pubDate>Fri, 01 Mar 2013 15:38:48 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/embedding-font-subset-vs-text-align_topic2526_post10539.html#10539</guid>
  </item> 
 </channel>
</rss>