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

http://github.com/zpao/v8monkey · HTML · 94 lines · 83 code · 11 blank · 0 comment · 0 complexity · a2cc2ce5bd160bbab5635df1a82c220d 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. LZW Streams
  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_Stream_OpenLZW">FT_Stream_OpenLZW</a></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>This section contains the declaration of LZW-specific functions.</p>
  42. </td></tr></table><br>
  43. <table align=center width="75%"><tr><td>
  44. <h4><a name="FT_Stream_OpenLZW">FT_Stream_OpenLZW</a></h4>
  45. <table align=center width="87%"><tr><td>
  46. Defined in FT_LZW_H (freetype/ftlzw.h).
  47. </td></tr></table><br>
  48. <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
  49. FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
  50. <b>FT_Stream_OpenLZW</b>( <a href="ft2-system_interface.html#FT_Stream">FT_Stream</a> stream,
  51. <a href="ft2-system_interface.html#FT_Stream">FT_Stream</a> source );
  52. </pre></table><br>
  53. <table align=center width="87%"><tr><td>
  54. <p>Open a new stream to parse LZW-compressed font files. This is mainly used to support the compressed &lsquo;*.pcf.Z&rsquo; fonts that come with XFree86.</p>
  55. </td></tr></table><br>
  56. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
  57. <p></p>
  58. <table cellpadding=3 border=0>
  59. <tr valign=top><td><b>stream</b></td><td>
  60. <p>The target embedding stream.</p>
  61. </td></tr>
  62. <tr valign=top><td><b>source</b></td><td>
  63. <p>The source stream.</p>
  64. </td></tr>
  65. </table>
  66. </td></tr></table>
  67. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
  68. <p>FreeType error code. 0&nbsp;means success.</p>
  69. </td></tr></table>
  70. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
  71. <p>The source stream must be opened <i>before</i> calling this function.</p>
  72. <p>Calling the internal function &lsquo;FT_Stream_Close&rsquo; on the new stream will <b>not</b> call &lsquo;FT_Stream_Close&rsquo; on the source stream. None of the stream objects will be released to the heap.</p>
  73. <p>The stream implementation is very basic and resets the decompression process each time seeking backwards is needed within the stream</p>
  74. <p>In certain builds of the library, LZW compression recognition is automatically handled when calling <a href="ft2-base_interface.html#FT_New_Face">FT_New_Face</a> or <a href="ft2-base_interface.html#FT_Open_Face">FT_Open_Face</a>. This means that if no font driver is capable of handling the raw compressed file, the library will try to open a LZW stream from it and re-open the face with it.</p>
  75. <p>This function may return &lsquo;FT_Err_Unimplemented_Feature&rsquo; if your build of FreeType was not compiled with LZW support.</p>
  76. </td></tr></table>
  77. </td></tr></table>
  78. <hr width="75%">
  79. <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
  80. <td width="100%"></td>
  81. <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
  82. </body>
  83. </html>