Hi, TCPDF not render &frac entities in PDF file? Can anyone help me?
I've tested it on my install and it displayed some fractions.
<table> <tr> <th>Fraction</th><th>Decimal</th><th>Hexadecimal</th><th>HTML Entity</th></tr> <tr><td>½</td><td>½</td><td>½</td><td>½</td></tr> <tr><td>⅓</td><td>⅓</td><td>ࡩ</td><td>⅓</td></tr> <tr><td>⅔</td><td>⅔</td><td>ࡪ</td><td>⅔</td></tr> <tr><td>¼</td><td>¼</td><td>¼</td><td>¼</td></tr> <tr><td>¾</td><td>¾</td><td>¾</td><td>¾</td></tr> <tr><td>⅕</td><td>⅕</td><td>࡫</td><td>⅕</td></tr> <tr><td>⅖</td><td>⅖</td><td>࡬</td><td>⅖</td></tr> <tr><td>⅗</td><td>⅗</td><td>࡭</td><td>⅗</td></tr> <tr><td>⅘</td><td>⅘</td><td>࡮</td><td>⅘</td></tr> <tr><td>⅙</td><td>⅙</td><td>࡯</td><td>⅙</td></tr> <tr><td>⅚</td><td>⅚</td><td>×A;</td><td>⅚</td></tr> <tr><td>⅐</td><td>⅐</td><td>ࡦ</td><td>&frac17;</td></tr> <tr><td>⅛</td><td>⅛</td><td>×B;</td><td>⅛</td></tr> <tr><td>⅜</td><td>⅜</td><td>×C;</td><td>⅜</td></tr> <tr><td>⅝</td><td>⅝</td><td>×D;</td><td>⅝</td></tr> <tr><td>⅞</td><td>⅞</td><td>×E;</td><td>⅞</td></tr> <tr><td>⅑</td><td>⅑</td><td>ࡧ</td><td>—</td></tr> <tr><td>⅒</td><td>⅒</td><td> </td><td>—</td></tr> </table>
Using the above table I only saw 1/2 1/4 and 3/4, but I wonder if it depends on the font you are using.
Log in to post a comment.
Hi,
TCPDF not render &frac entities in PDF file?
Can anyone help me?
I've tested it on my install and it displayed some fractions.
Using the above table I only saw 1/2 1/4 and 3/4, but I wonder if it depends on the font you are using.