<?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 : Printing Fractions and other unicode things</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 : Printing Fractions and other unicode things]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 09 Apr 2026 18:52:59 +0000</pubDate>
  <lastBuildDate>Fri, 05 Oct 2012 06:29:29 +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=2421</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[Printing Fractions and other unicode things :   Not all fonts contain the...]]></title>
   <link>http://www.quickpdf.org/forum/printing-fractions-and-other-unicode-things_topic2421_post10210.html#10210</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2421<br /><strong>Posted:</strong> 05 Oct 12 at 6:29AM<br /><br /><div>Not all fonts contain the extra fractions such as 1/6, 5/6.</div><div><br></div><div>If you only specify characters that exist then everything works as expected in 8.16 and 9.11. &nbsp;To get the sample to work below in 8.16, 9.11 then just change the font to Arial Unicode MS.</div><div><br></div>I have used the following code for testing<div><br></div><div>Note :The string ends with &nbsp;"1/4 &nbsp;1/2 &nbsp;3/4 &nbsp; 1/3 &nbsp;2/3 &nbsp;1/8 &nbsp;3/8 &nbsp;5/8 &nbsp;7/8 &nbsp;1/5 &nbsp;2/5 &nbsp;3/5 &nbsp;4/5 &nbsp;1/6 &nbsp;5/6"<br><div><br></div><div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.SetOrigin(1);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string str = "12345: HELLO WORLD - ¼½¾ ⅓⅔⅛⅜⅝⅞ &nbsp;⅕⅖⅗⅘⅙⅚";</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int id = QP.AddTrueTypeSubsettedFont("Arial", str, 0);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.SelectFont(id);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.SetTextSize(18);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.DrawText(20, 30, str);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.SaveToFile("out.pdf");</div><div><br></div></div><div>1. Using Arial I get the correct output up until 7/8. &nbsp;The other characters don't exist in the font.</div><div><br></div><div>2. If I change the font to "Arial Unicode MS" then it generates the full string correctly.</div><div><br></div></div><div>Andrew.</div><div><br></div><span style="font-size:10px"><br /><br />Edited by AndrewC - 05 Oct 12 at 8:20AM</span>]]>
   </description>
   <pubDate>Fri, 05 Oct 2012 06:29:29 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/printing-fractions-and-other-unicode-things_topic2421_post10210.html#10210</guid>
  </item> 
  <item>
   <title><![CDATA[Printing Fractions and other unicode things : How do I print these unicode superscript...]]></title>
   <link>http://www.quickpdf.org/forum/printing-fractions-and-other-unicode-things_topic2421_post10190.html#10190</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1907">fargburger</a><br /><strong>Subject:</strong> 2421<br /><strong>Posted:</strong> 02 Oct 12 at 5:22PM<br /><br />How do I print these unicode superscript characters? <br><br>&gt; http://www.alanwood.net/unicode/superscripts_and_subscripts.html<br><br>I can print superscript 1,2 and 3 because they're found in a lower range of codepoints, but I can't print the slash or the rest of the numbers for numerators or denominators.&nbsp; In debugging, Delphi shows me 5/9ths up until I send the string off to QuickPDF. When it comes through in quick PDF I get nothing, it's not even considered in calculating the width of the text box. <br><br>I tried using embed and non-embeded true type fonts, other than that I don't do anything fancy to fonts in quickPDF. <br><br>(using QuickPDF 8.16)<br>]]>
   </description>
   <pubDate>Tue, 02 Oct 2012 17:22:18 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/printing-fractions-and-other-unicode-things_topic2421_post10190.html#10190</guid>
  </item> 
 </channel>
</rss>