/modules/freetype2/docs/reference/ft2-gasp_table.html

http://github.com/zpao/v8monkey · HTML · 141 lines · 127 code · 14 blank · 0 comment · 0 complexity · f6a9240d2434af9088dfa6dc6e5ef6bb MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  2. "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <title>FreeType-2.4.3 API Reference</title>
  7. <style type="text/css">
  8. body { font-family: Verdana, Geneva, Arial, Helvetica, serif;
  9. color: #000000;
  10. background: #FFFFFF; }
  11. p { text-align: justify; }
  12. h1 { text-align: center; }
  13. li { text-align: justify; }
  14. td { padding: 0 0.5em 0 0.5em; }
  15. td.left { padding: 0 0.5em 0 0.5em;
  16. text-align: left; }
  17. a:link { color: #0000EF; }
  18. a:visited { color: #51188E; }
  19. a:hover { color: #FF0000; }
  20. span.keyword { font-family: monospace;
  21. text-align: left;
  22. white-space: pre;
  23. color: darkblue; }
  24. pre.colored { color: blue; }
  25. ul.empty { list-style-type: none; }
  26. </style>
  27. </head>
  28. <body>
  29. <table align=center><tr><td><font size=-1>[<a href="ft2-index.html">Index</a>]</font></td>
  30. <td width="100%"></td>
  31. <td><font size=-1>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
  32. <center><h1>FreeType-2.4.3 API Reference</h1></center>
  33. <center><h1>
  34. Gasp Table
  35. </h1></center>
  36. <h2>Synopsis</h2>
  37. <table align=center cellspacing=5 cellpadding=0 border=0>
  38. <tr><td></td><td><a href="#FT_GASP_XXX">FT_GASP_XXX</a></td><td></td><td><a href="#FT_Get_Gasp">FT_Get_Gasp</a></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
  39. </table><br><br>
  40. <table align=center width="87%"><tr><td>
  41. <p>The function <a href="ft2-gasp_table.html#FT_Get_Gasp">FT_Get_Gasp</a> can be used to query a TrueType or OpenType font for specific entries in its &lsquo;gasp&rsquo; table, if any. This is mainly useful when implementing native TrueType hinting with the bytecode interpreter to duplicate the Windows text rendering results.</p>
  42. </td></tr></table><br>
  43. <table align=center width="75%"><tr><td>
  44. <h4><a name="FT_GASP_XXX">FT_GASP_XXX</a></h4>
  45. <table align=center width="87%"><tr><td>
  46. Defined in FT_GASP_H (freetype/ftgasp.h).
  47. </td></tr></table><br>
  48. <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
  49. #define <a href="ft2-gasp_table.html#FT_GASP_XXX">FT_GASP_NO_TABLE</a> -1
  50. #define <a href="ft2-gasp_table.html#FT_GASP_XXX">FT_GASP_DO_GRIDFIT</a> 0x01
  51. #define <a href="ft2-gasp_table.html#FT_GASP_XXX">FT_GASP_DO_GRAY</a> 0x02
  52. #define <a href="ft2-gasp_table.html#FT_GASP_XXX">FT_GASP_SYMMETRIC_SMOOTHING</a> 0x08
  53. #define <a href="ft2-gasp_table.html#FT_GASP_XXX">FT_GASP_SYMMETRIC_GRIDFIT</a> 0x10
  54. </pre></table><br>
  55. <table align=center width="87%"><tr><td>
  56. <p>A list of values and/or bit-flags returned by the <a href="ft2-gasp_table.html#FT_Get_Gasp">FT_Get_Gasp</a> function.</p>
  57. </td></tr></table><br>
  58. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td>
  59. <p></p>
  60. <table cellpadding=3 border=0>
  61. <tr valign=top><td><b>FT_GASP_NO_TABLE</b></td><td>
  62. <p>This special value means that there is no GASP table in this face. It is up to the client to decide what to do.</p>
  63. </td></tr>
  64. <tr valign=top><td><b>FT_GASP_DO_GRIDFIT</b></td><td>
  65. <p>Grid-fitting and hinting should be performed at the specified ppem. This <b>really</b> means TrueType bytecode interpretation.</p>
  66. </td></tr>
  67. <tr valign=top><td><b>FT_GASP_DO_GRAY</b></td><td>
  68. <p>Anti-aliased rendering should be performed at the specified ppem.</p>
  69. </td></tr>
  70. <tr valign=top><td colspan=0><b>FT_GASP_SYMMETRIC_SMOOTHING</b></td></tr>
  71. <tr valign=top><td></td><td>
  72. <p>Smoothing along multiple axes must be used with ClearType.</p>
  73. </td></tr>
  74. <tr valign=top><td colspan=0><b>FT_GASP_SYMMETRIC_GRIDFIT</b></td></tr>
  75. <tr valign=top><td></td><td>
  76. <p>Grid-fitting must be used with ClearType's symmetric smoothing.</p>
  77. </td></tr>
  78. </table>
  79. </td></tr></table>
  80. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
  81. <p>&lsquo;ClearType&rsquo; is Microsoft's implementation of LCD rendering, partly protected by patents.</p>
  82. </td></tr></table>
  83. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>since</b></em></td></tr><tr><td>
  84. <p>2.3.0</p>
  85. </td></tr></table>
  86. </td></tr></table>
  87. <hr width="75%">
  88. <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
  89. <td width="100%"></td>
  90. <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
  91. <table align=center width="75%"><tr><td>
  92. <h4><a name="FT_Get_Gasp">FT_Get_Gasp</a></h4>
  93. <table align=center width="87%"><tr><td>
  94. Defined in FT_GASP_H (freetype/ftgasp.h).
  95. </td></tr></table><br>
  96. <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
  97. FT_EXPORT( <a href="ft2-basic_types.html#FT_Int">FT_Int</a> )
  98. <b>FT_Get_Gasp</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a> face,
  99. <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a> ppem );
  100. </pre></table><br>
  101. <table align=center width="87%"><tr><td>
  102. <p>Read the &lsquo;gasp&rsquo; table from a TrueType or OpenType font file and return the entry corresponding to a given character pixel size.</p>
  103. </td></tr></table><br>
  104. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
  105. <p></p>
  106. <table cellpadding=3 border=0>
  107. <tr valign=top><td><b>face</b></td><td>
  108. <p>The source face handle.</p>
  109. </td></tr>
  110. <tr valign=top><td><b>ppem</b></td><td>
  111. <p>The vertical character pixel size.</p>
  112. </td></tr>
  113. </table>
  114. </td></tr></table>
  115. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
  116. <p>Bit flags (see <a href="ft2-gasp_table.html#FT_GASP_XXX">FT_GASP_XXX</a>), or <a href="ft2-gasp_table.html#FT_GASP_XXX">FT_GASP_NO_TABLE</a> if there is no &lsquo;gasp&rsquo; table in the face.</p>
  117. </td></tr></table>
  118. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>since</b></em></td></tr><tr><td>
  119. <p>2.3.0</p>
  120. </td></tr></table>
  121. </td></tr></table>
  122. <hr width="75%">
  123. <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
  124. <td width="100%"></td>
  125. <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
  126. </body>
  127. </html>