Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  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.5.0 API Reference</title>
  7. <style type="text/css">
  8.   body { font-family: Verdana, Geneva, Arial, Helvetica, serif;
  9.          color: #000000;
  10.          background: #FFFFFF; }
  11.  
  12.   p { text-align: justify; }
  13.   h1 { text-align: center; }
  14.   li { text-align: justify; }
  15.   td { padding: 0 0.5em 0 0.5em; }
  16.   td.left { padding: 0 0.5em 0 0.5em;
  17.             text-align: left; }
  18.  
  19.   a:link { color: #0000EF; }
  20.   a:visited { color: #51188E; }
  21.   a:hover { color: #FF0000; }
  22.  
  23.   span.keyword { font-family: monospace;
  24.                  text-align: left;
  25.                  white-space: pre;
  26.                  color: darkblue; }
  27.  
  28.   pre.colored { color: blue; }
  29.  
  30.   ul.empty { list-style-type: none; }
  31. </style>
  32. </head>
  33. <body>
  34.  
  35. <table align=center><tr><td><font size=-1>[<a href="ft2-index.html">Index</a>]</font></td>
  36. <td width="100%"></td>
  37. <td><font size=-1>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
  38. <center><h1>FreeType-2.5.0 API Reference</h1></center>
  39.  
  40. <center><h1>
  41. Module Management
  42. </h1></center>
  43. <h2>Synopsis</h2>
  44. <table align=center cellspacing=5 cellpadding=0 border=0>
  45. <tr><td></td><td><a href="#FT_Module_Constructor">FT_Module_Constructor</a></td><td></td><td><a href="#FT_Remove_Module">FT_Remove_Module</a></td><td></td><td><a href="#FT_Set_Debug_Hook">FT_Set_Debug_Hook</a></td></tr>
  46. <tr><td></td><td><a href="#FT_Module_Destructor">FT_Module_Destructor</a></td><td></td><td><a href="#FT_Property_Set">FT_Property_Set</a></td><td></td><td><a href="#FT_Add_Default_Modules">FT_Add_Default_Modules</a></td></tr>
  47. <tr><td></td><td><a href="#FT_Module_Requester">FT_Module_Requester</a></td><td></td><td><a href="#FT_Property_Get">FT_Property_Get</a></td><td></td><td><a href="#FT_Renderer_Class">FT_Renderer_Class</a></td></tr>
  48. <tr><td></td><td><a href="#FT_Module_Class">FT_Module_Class</a></td><td></td><td><a href="#FT_Reference_Library">FT_Reference_Library</a></td><td></td><td><a href="#FT_Get_Renderer">FT_Get_Renderer</a></td></tr>
  49. <tr><td></td><td><a href="#FT_Add_Module">FT_Add_Module</a></td><td></td><td><a href="#FT_New_Library">FT_New_Library</a></td><td></td><td><a href="#FT_Set_Renderer">FT_Set_Renderer</a></td></tr>
  50. <tr><td></td><td><a href="#FT_Get_Module">FT_Get_Module</a></td><td></td><td><a href="#FT_Done_Library">FT_Done_Library</a></td><td></td><td></td></tr>
  51. </table><br><br>
  52.  
  53. <table align=center width="87%"><tr><td>
  54. <p>The definitions below are used to manage modules within FreeType. Modules can be added, upgraded, and removed at runtime. Additionally, some module properties can be controlled also.</p>
  55. <p>Here is a list of possible values of the &lsquo;module_name&rsquo; field in the <a href="ft2-module_management.html#FT_Module_Class">FT_Module_Class</a> structure.</p>
  56. <pre class="colored">
  57.   autofitter                                                      
  58.   bdf                                                              
  59.   cff                                                              
  60.   gxvalid                                                          
  61.   otvalid                                                          
  62.   pcf                                                              
  63.   pfr                                                              
  64.   psaux                                                            
  65.   pshinter                                                        
  66.   psnames                                                          
  67.   raster1, raster5                                                
  68.   sfnt                                                            
  69.   smooth, smooth-lcd, smooth-lcdv                                  
  70.   truetype                                                        
  71.   type1                                                            
  72.   type42                                                          
  73.   t1cid                                                            
  74.   winfonts                                                        
  75. </pre>
  76. <p>Note that the FreeType Cache sub-system is not a FreeType module.</p>
  77. </td></tr></table><br>
  78. <table align=center width="75%"><tr><td>
  79. <h4><a name="FT_Module_Constructor">FT_Module_Constructor</a></h4>
  80. <table align=center width="87%"><tr><td>
  81. Defined in FT_MODULE_H (freetype/ftmodapi.h).
  82. </td></tr></table><br>
  83. <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
  84.  
  85.   <span class="keyword">typedef</span> <a href="ft2-basic_types.html#FT_Error">FT_Error</a>
  86.   (*<b>FT_Module_Constructor</b>)( <a href="ft2-base_interface.html#FT_Module">FT_Module</a>  module );
  87.  
  88. </pre></table><br>
  89. <table align=center width="87%"><tr><td>
  90. <p>A function used to initialize (not create) a new module object.</p>
  91. </td></tr></table><br>
  92. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
  93. <p></p>
  94. <table cellpadding=3 border=0>
  95. <tr valign=top><td><b>module</b></td><td>
  96. <p>The module to initialize.</p>
  97. </td></tr>
  98. </table>
  99. </td></tr></table>
  100. </td></tr></table>
  101. <hr width="75%">
  102. <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
  103. <td width="100%"></td>
  104. <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
  105.  
  106. <table align=center width="75%"><tr><td>
  107. <h4><a name="FT_Module_Destructor">FT_Module_Destructor</a></h4>
  108. <table align=center width="87%"><tr><td>
  109. Defined in FT_MODULE_H (freetype/ftmodapi.h).
  110. </td></tr></table><br>
  111. <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
  112.  
  113.   <span class="keyword">typedef</span> <span class="keyword">void</span>
  114.   (*<b>FT_Module_Destructor</b>)( <a href="ft2-base_interface.html#FT_Module">FT_Module</a>  module );
  115.  
  116. </pre></table><br>
  117. <table align=center width="87%"><tr><td>
  118. <p>A function used to finalize (not destroy) a given module object.</p>
  119. </td></tr></table><br>
  120. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
  121. <p></p>
  122. <table cellpadding=3 border=0>
  123. <tr valign=top><td><b>module</b></td><td>
  124. <p>The module to finalize.</p>
  125. </td></tr>
  126. </table>
  127. </td></tr></table>
  128. </td></tr></table>
  129. <hr width="75%">
  130. <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
  131. <td width="100%"></td>
  132. <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
  133.  
  134. <table align=center width="75%"><tr><td>
  135. <h4><a name="FT_Module_Requester">FT_Module_Requester</a></h4>
  136. <table align=center width="87%"><tr><td>
  137. Defined in FT_MODULE_H (freetype/ftmodapi.h).
  138. </td></tr></table><br>
  139. <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
  140.  
  141.   <span class="keyword">typedef</span> FT_Module_Interface
  142.   (*<b>FT_Module_Requester</b>)( <a href="ft2-base_interface.html#FT_Module">FT_Module</a>    module,
  143.                           <span class="keyword">const</span> <span class="keyword">char</span>*  name );
  144.  
  145. </pre></table><br>
  146. <table align=center width="87%"><tr><td>
  147. <p>A function used to query a given module for a specific interface.</p>
  148. </td></tr></table><br>
  149. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
  150. <p></p>
  151. <table cellpadding=3 border=0>
  152. <tr valign=top><td><b>module</b></td><td>
  153. <p>The module to be searched.</p>
  154. </td></tr>
  155. <tr valign=top><td><b>name</b></td><td>
  156. <p>The name of the interface in the module.</p>
  157. </td></tr>
  158. </table>
  159. </td></tr></table>
  160. </td></tr></table>
  161. <hr width="75%">
  162. <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
  163. <td width="100%"></td>
  164. <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
  165.  
  166. <table align=center width="75%"><tr><td>
  167. <h4><a name="FT_Module_Class">FT_Module_Class</a></h4>
  168. <table align=center width="87%"><tr><td>
  169. Defined in FT_MODULE_H (freetype/ftmodapi.h).
  170. </td></tr></table><br>
  171. <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
  172.  
  173.   <span class="keyword">typedef</span> <span class="keyword">struct</span>  FT_Module_Class_
  174.   {
  175.     <a href="ft2-basic_types.html#FT_ULong">FT_ULong</a>               module_flags;
  176.     <a href="ft2-basic_types.html#FT_Long">FT_Long</a>                module_size;
  177.     <span class="keyword">const</span> <a href="ft2-basic_types.html#FT_String">FT_String</a>*       module_name;
  178.     <a href="ft2-basic_types.html#FT_Fixed">FT_Fixed</a>               module_version;
  179.     <a href="ft2-basic_types.html#FT_Fixed">FT_Fixed</a>               module_requires;
  180.  
  181.     <span class="keyword">const</span> <span class="keyword">void</span>*            module_interface;
  182.  
  183.     <a href="ft2-module_management.html#FT_Module_Constructor">FT_Module_Constructor</a>  module_init;
  184.     <a href="ft2-module_management.html#FT_Module_Destructor">FT_Module_Destructor</a>   module_done;
  185.     <a href="ft2-module_management.html#FT_Module_Requester">FT_Module_Requester</a>    get_interface;
  186.  
  187.   } <b>FT_Module_Class</b>;
  188.  
  189. </pre></table><br>
  190. <table align=center width="87%"><tr><td>
  191. <p>The module class descriptor.</p>
  192. </td></tr></table><br>
  193. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>fields</b></em></td></tr><tr><td>
  194. <p></p>
  195. <table cellpadding=3 border=0>
  196. <tr valign=top><td><b>module_flags</b></td><td>
  197. <p>Bit flags describing the module.</p>
  198. </td></tr>
  199. <tr valign=top><td><b>module_size</b></td><td>
  200. <p>The size of one module object/instance in bytes.</p>
  201. </td></tr>
  202. <tr valign=top><td><b>module_name</b></td><td>
  203. <p>The name of the module.</p>
  204. </td></tr>
  205. <tr valign=top><td><b>module_version</b></td><td>
  206. <p>The version, as a 16.16 fixed number (major.minor).</p>
  207. </td></tr>
  208. <tr valign=top><td><b>module_requires</b></td><td>
  209. <p>The version of FreeType this module requires, as a 16.16 fixed number (major.minor). Starts at version 2.0, i.e., 0x20000.</p>
  210. </td></tr>
  211. <tr valign=top><td><b>module_init</b></td><td>
  212. <p>The initializing function.</p>
  213. </td></tr>
  214. <tr valign=top><td><b>module_done</b></td><td>
  215. <p>The finalizing function.</p>
  216. </td></tr>
  217. <tr valign=top><td><b>get_interface</b></td><td>
  218. <p>The interface requesting function.</p>
  219. </td></tr>
  220. </table>
  221. </td></tr></table>
  222. </td></tr></table>
  223. <hr width="75%">
  224. <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
  225. <td width="100%"></td>
  226. <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
  227.  
  228. <table align=center width="75%"><tr><td>
  229. <h4><a name="FT_Add_Module">FT_Add_Module</a></h4>
  230. <table align=center width="87%"><tr><td>
  231. Defined in FT_MODULE_H (freetype/ftmodapi.h).
  232. </td></tr></table><br>
  233. <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
  234.  
  235.   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
  236.   <b>FT_Add_Module</b>( <a href="ft2-base_interface.html#FT_Library">FT_Library</a>              library,
  237.                  <span class="keyword">const</span> <a href="ft2-module_management.html#FT_Module_Class">FT_Module_Class</a>*  clazz );
  238.  
  239. </pre></table><br>
  240. <table align=center width="87%"><tr><td>
  241. <p>Add a new module to a given library instance.</p>
  242. </td></tr></table><br>
  243. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
  244. <p></p>
  245. <table cellpadding=3 border=0>
  246. <tr valign=top><td><b>library</b></td><td>
  247. <p>A handle to the library object.</p>
  248. </td></tr>
  249. </table>
  250. </td></tr></table>
  251. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
  252. <p></p>
  253. <table cellpadding=3 border=0>
  254. <tr valign=top><td><b>clazz</b></td><td>
  255. <p>A pointer to class descriptor for the module.</p>
  256. </td></tr>
  257. </table>
  258. </td></tr></table>
  259. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
  260. <p>FreeType error code. 0&nbsp;means success.</p>
  261. </td></tr></table>
  262. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
  263. <p>An error will be returned if a module already exists by that name, or if the module requires a version of FreeType that is too great.</p>
  264. </td></tr></table>
  265. </td></tr></table>
  266. <hr width="75%">
  267. <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
  268. <td width="100%"></td>
  269. <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
  270.  
  271. <table align=center width="75%"><tr><td>
  272. <h4><a name="FT_Get_Module">FT_Get_Module</a></h4>
  273. <table align=center width="87%"><tr><td>
  274. Defined in FT_MODULE_H (freetype/ftmodapi.h).
  275. </td></tr></table><br>
  276. <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
  277.  
  278.   FT_EXPORT( <a href="ft2-base_interface.html#FT_Module">FT_Module</a> )
  279.   <b>FT_Get_Module</b>( <a href="ft2-base_interface.html#FT_Library">FT_Library</a>   library,
  280.                  <span class="keyword">const</span> <span class="keyword">char</span>*  module_name );
  281.  
  282. </pre></table><br>
  283. <table align=center width="87%"><tr><td>
  284. <p>Find a module by its name.</p>
  285. </td></tr></table><br>
  286. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
  287. <p></p>
  288. <table cellpadding=3 border=0>
  289. <tr valign=top><td><b>library</b></td><td>
  290. <p>A handle to the library object.</p>
  291. </td></tr>
  292. <tr valign=top><td><b>module_name</b></td><td>
  293. <p>The module's name (as an ASCII string).</p>
  294. </td></tr>
  295. </table>
  296. </td></tr></table>
  297. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
  298. <p>A module handle. 0&nbsp;if none was found.</p>
  299. </td></tr></table>
  300. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
  301. <p>FreeType's internal modules aren't documented very well, and you should look up the source code for details.</p>
  302. </td></tr></table>
  303. </td></tr></table>
  304. <hr width="75%">
  305. <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
  306. <td width="100%"></td>
  307. <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
  308.  
  309. <table align=center width="75%"><tr><td>
  310. <h4><a name="FT_Remove_Module">FT_Remove_Module</a></h4>
  311. <table align=center width="87%"><tr><td>
  312. Defined in FT_MODULE_H (freetype/ftmodapi.h).
  313. </td></tr></table><br>
  314. <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
  315.  
  316.  FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
  317.  <b>FT_Remove_Module</b>( <a href="ft2-base_interface.html#FT_Library">FT_Library</a>  library,
  318.                    <a href="ft2-base_interface.html#FT_Module">FT_Module</a>   module );
  319.  
  320. </pre></table><br>
  321. <table align=center width="87%"><tr><td>
  322. <p>Remove a given module from a library instance.</p>
  323. </td></tr></table><br>
  324. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
  325. <p></p>
  326. <table cellpadding=3 border=0>
  327. <tr valign=top><td><b>library</b></td><td>
  328. <p>A handle to a library object.</p>
  329. </td></tr>
  330. </table>
  331. </td></tr></table>
  332. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
  333. <p></p>
  334. <table cellpadding=3 border=0>
  335. <tr valign=top><td><b>module</b></td><td>
  336. <p>A handle to a module object.</p>
  337. </td></tr>
  338. </table>
  339. </td></tr></table>
  340. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
  341. <p>FreeType error code. 0&nbsp;means success.</p>
  342. </td></tr></table>
  343. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
  344. <p>The module object is destroyed by the function in case of success.</p>
  345. </td></tr></table>
  346. </td></tr></table>
  347. <hr width="75%">
  348. <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
  349. <td width="100%"></td>
  350. <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
  351.  
  352. <table align=center width="75%"><tr><td>
  353. <h4><a name="FT_Property_Set">FT_Property_Set</a></h4>
  354. <table align=center width="87%"><tr><td>
  355. Defined in FT_MODULE_H (freetype/ftmodapi.h).
  356. </td></tr></table><br>
  357. <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
  358.  
  359.  FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
  360.  <b>FT_Property_Set</b>( <a href="ft2-base_interface.html#FT_Library">FT_Library</a>        library,
  361.                   <span class="keyword">const</span> <a href="ft2-basic_types.html#FT_String">FT_String</a>*  module_name,
  362.                   <span class="keyword">const</span> <a href="ft2-basic_types.html#FT_String">FT_String</a>*  property_name,
  363.                   <span class="keyword">const</span> <span class="keyword">void</span>*       value );
  364.  
  365. </pre></table><br>
  366. <table align=center width="87%"><tr><td>
  367. <p>Set a property for a given module.</p>
  368. </td></tr></table><br>
  369. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
  370. <p></p>
  371. <table cellpadding=3 border=0>
  372. <tr valign=top><td><b>library</b></td><td>
  373. <p>A handle to the library the module is part of.</p>
  374. </td></tr>
  375. <tr valign=top><td><b>module_name</b></td><td>
  376. <p>The module name.</p>
  377. </td></tr>
  378. <tr valign=top><td><b>property_name</b></td><td>
  379. <p>The property name. Properties are described in the &lsquo;Synopsis&rsquo; subsection of the module's documentation.</p>
  380. <p>Note that only a few modules have properties.</p>
  381. </td></tr>
  382. <tr valign=top><td><b>value</b></td><td>
  383. <p>A generic pointer to a variable or structure which gives the new value of the property. The exact definition of &lsquo;value&rsquo; is dependent on the property; see the &lsquo;Synopsis&rsquo; subsection of the module's documentation.</p>
  384. </td></tr>
  385. </table>
  386. </td></tr></table>
  387. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
  388. <p>FreeType error code. 0&nbsp;means success.</p>
  389. </td></tr></table>
  390. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
  391. <p>If &lsquo;module_name&rsquo; isn't a valid module name, or &lsquo;property_name&rsquo; doesn't specify a valid property, or if &lsquo;value&rsquo; doesn't represent a valid value for the given property, an error is returned.</p>
  392. <p>The following example sets property &lsquo;bar&rsquo; (a simple integer) in module &lsquo;foo&rsquo; to value&nbsp;1.</p>
  393. <pre class="colored">
  394.   FT_UInt  bar;
  395.  
  396.  
  397.   bar = 1;
  398.   FT_Property_Set( library, "foo", "bar", &amp;bar );
  399. </pre>
  400. <p>Note that the FreeType Cache sub-system doesn't recognize module property changes. To avoid glyph lookup confusion within the cache you should call <a href="ft2-cache_subsystem.html#FTC_Manager_Reset">FTC_Manager_Reset</a> to completely flush the cache if a module property gets changed after <a href="ft2-cache_subsystem.html#FTC_Manager_New">FTC_Manager_New</a> has been called.</p>
  401. <p>It is not possible to set properties of the FreeType Cache sub-system itself with FT_Property_Set; use ?FTC_Property_Set? instead.</p>
  402. </td></tr></table>
  403. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>since</b></em></td></tr><tr><td>
  404. <p>2.4.11</p>
  405. </td></tr></table>
  406. </td></tr></table>
  407. <hr width="75%">
  408. <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
  409. <td width="100%"></td>
  410. <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
  411.  
  412. <table align=center width="75%"><tr><td>
  413. <h4><a name="FT_Property_Get">FT_Property_Get</a></h4>
  414. <table align=center width="87%"><tr><td>
  415. Defined in FT_MODULE_H (freetype/ftmodapi.h).
  416. </td></tr></table><br>
  417. <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
  418.  
  419.  FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
  420.  <b>FT_Property_Get</b>( <a href="ft2-base_interface.html#FT_Library">FT_Library</a>        library,
  421.                   <span class="keyword">const</span> <a href="ft2-basic_types.html#FT_String">FT_String</a>*  module_name,
  422.                   <span class="keyword">const</span> <a href="ft2-basic_types.html#FT_String">FT_String</a>*  property_name,
  423.                   <span class="keyword">void</span>*             value );
  424.  
  425. </pre></table><br>
  426. <table align=center width="87%"><tr><td>
  427. <p>Get a module's property value.</p>
  428. </td></tr></table><br>
  429. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
  430. <p></p>
  431. <table cellpadding=3 border=0>
  432. <tr valign=top><td><b>library</b></td><td>
  433. <p>A handle to the library the module is part of.</p>
  434. </td></tr>
  435. <tr valign=top><td><b>module_name</b></td><td>
  436. <p>The module name.</p>
  437. </td></tr>
  438. <tr valign=top><td><b>property_name</b></td><td>
  439. <p>The property name. Properties are described in the &lsquo;Synopsis&rsquo; subsection of the module's documentation.</p>
  440. </td></tr>
  441. </table>
  442. </td></tr></table>
  443. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
  444. <p></p>
  445. <table cellpadding=3 border=0>
  446. <tr valign=top><td><b>value</b></td><td>
  447. <p>A generic pointer to a variable or structure which gives the value of the property. The exact definition of &lsquo;value&rsquo; is dependent on the property; see the &lsquo;Synopsis&rsquo; subsection of the module's documentation.</p>
  448. </td></tr>
  449. </table>
  450. </td></tr></table>
  451. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
  452. <p>FreeType error code. 0&nbsp;means success.</p>
  453. </td></tr></table>
  454. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
  455. <p>If &lsquo;module_name&rsquo; isn't a valid module name, or &lsquo;property_name&rsquo; doesn't specify a valid property, or if &lsquo;value&rsquo; doesn't represent a valid value for the given property, an error is returned.</p>
  456. <p>The following example gets property &lsquo;baz&rsquo; (a range) in module &lsquo;foo&rsquo;.</p>
  457. <pre class="colored">
  458.  typedef  range_
  459.  {
  460.    FT_Int32  min;
  461.    FT_Int32  max;
  462.  
  463.  } range;
  464.  
  465.  range  baz;
  466.  
  467.  
  468.  FT_Property_Get( library, "foo", "baz", &amp;baz );
  469. </pre>
  470. <p>It is not possible to retrieve properties of the FreeType Cache sub-system with FT_Property_Get; use ?FTC_Property_Get? instead.</p>
  471. </td></tr></table>
  472. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>since</b></em></td></tr><tr><td>
  473. <p>2.4.11</p>
  474. </td></tr></table>
  475. </td></tr></table>
  476. <hr width="75%">
  477. <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
  478. <td width="100%"></td>
  479. <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
  480.  
  481. <table align=center width="75%"><tr><td>
  482. <h4><a name="FT_Reference_Library">FT_Reference_Library</a></h4>
  483. <table align=center width="87%"><tr><td>
  484. Defined in FT_MODULE_H (freetype/ftmodapi.h).
  485. </td></tr></table><br>
  486. <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
  487.  
  488.  FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
  489.  <b>FT_Reference_Library</b>( <a href="ft2-base_interface.html#FT_Library">FT_Library</a>  library );
  490.  
  491. </pre></table><br>
  492. <table align=center width="87%"><tr><td>
  493. <p>A counter gets initialized to&nbsp;1 at the time an <a href="ft2-base_interface.html#FT_Library">FT_Library</a> structure is created. This function increments the counter. <a href="ft2-module_management.html#FT_Done_Library">FT_Done_Library</a> then only destroys a library if the counter is&nbsp;1, otherwise it simply decrements the counter.</p>
  494. <p>This function helps in managing life-cycles of structures which reference <a href="ft2-base_interface.html#FT_Library">FT_Library</a> objects.</p>
  495. </td></tr></table><br>
  496. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
  497. <p></p>
  498. <table cellpadding=3 border=0>
  499. <tr valign=top><td><b>library</b></td><td>
  500. <p>A handle to a target library object.</p>
  501. </td></tr>
  502. </table>
  503. </td></tr></table>
  504. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
  505. <p>FreeType error code. 0&nbsp;means success.</p>
  506. </td></tr></table>
  507. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>since</b></em></td></tr><tr><td>
  508. <p>2.4.2</p>
  509. </td></tr></table>
  510. </td></tr></table>
  511. <hr width="75%">
  512. <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
  513. <td width="100%"></td>
  514. <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
  515.  
  516. <table align=center width="75%"><tr><td>
  517. <h4><a name="FT_New_Library">FT_New_Library</a></h4>
  518. <table align=center width="87%"><tr><td>
  519. Defined in FT_MODULE_H (freetype/ftmodapi.h).
  520. </td></tr></table><br>
  521. <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
  522.  
  523.  FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
  524.  <b>FT_New_Library</b>( <a href="ft2-system_interface.html#FT_Memory">FT_Memory</a>    memory,
  525.                  <a href="ft2-base_interface.html#FT_Library">FT_Library</a>  *alibrary );
  526.  
  527. </pre></table><br>
  528. <table align=center width="87%"><tr><td>
  529. <p>This function is used to create a new FreeType library instance from a given memory object. It is thus possible to use libraries with distinct memory allocators within the same program.</p>
  530. <p>Normally, you would call this function (followed by a call to <a href="ft2-module_management.html#FT_Add_Default_Modules">FT_Add_Default_Modules</a> or a series of calls to <a href="ft2-module_management.html#FT_Add_Module">FT_Add_Module</a>) instead of <a href="ft2-base_interface.html#FT_Init_FreeType">FT_Init_FreeType</a> to initialize the FreeType library.</p>
  531. <p>Don't use <a href="ft2-base_interface.html#FT_Done_FreeType">FT_Done_FreeType</a> but <a href="ft2-module_management.html#FT_Done_Library">FT_Done_Library</a> to destroy a library instance.</p>
  532. </td></tr></table><br>
  533. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
  534. <p></p>
  535. <table cellpadding=3 border=0>
  536. <tr valign=top><td><b>memory</b></td><td>
  537. <p>A handle to the original memory object.</p>
  538. </td></tr>
  539. </table>
  540. </td></tr></table>
  541. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
  542. <p></p>
  543. <table cellpadding=3 border=0>
  544. <tr valign=top><td><b>alibrary</b></td><td>
  545. <p>A pointer to handle of a new library object.</p>
  546. </td></tr>
  547. </table>
  548. </td></tr></table>
  549. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
  550. <p>FreeType error code. 0&nbsp;means success.</p>
  551. </td></tr></table>
  552. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
  553. <p>See the discussion of reference counters in the description of <a href="ft2-module_management.html#FT_Reference_Library">FT_Reference_Library</a>.</p>
  554. </td></tr></table>
  555. </td></tr></table>
  556. <hr width="75%">
  557. <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
  558. <td width="100%"></td>
  559. <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
  560.  
  561. <table align=center width="75%"><tr><td>
  562. <h4><a name="FT_Done_Library">FT_Done_Library</a></h4>
  563. <table align=center width="87%"><tr><td>
  564. Defined in FT_MODULE_H (freetype/ftmodapi.h).
  565. </td></tr></table><br>
  566. <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
  567.  
  568.   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
  569.   <b>FT_Done_Library</b>( <a href="ft2-base_interface.html#FT_Library">FT_Library</a>  library );
  570.  
  571. </pre></table><br>
  572. <table align=center width="87%"><tr><td>
  573. <p>Discard a given library object. This closes all drivers and discards all resource objects.</p>
  574. </td></tr></table><br>
  575. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
  576. <p></p>
  577. <table cellpadding=3 border=0>
  578. <tr valign=top><td><b>library</b></td><td>
  579. <p>A handle to the target library.</p>
  580. </td></tr>
  581. </table>
  582. </td></tr></table>
  583. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
  584. <p>FreeType error code. 0&nbsp;means success.</p>
  585. </td></tr></table>
  586. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
  587. <p>See the discussion of reference counters in the description of <a href="ft2-module_management.html#FT_Reference_Library">FT_Reference_Library</a>.</p>
  588. </td></tr></table>
  589. </td></tr></table>
  590. <hr width="75%">
  591. <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
  592. <td width="100%"></td>
  593. <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
  594.  
  595. <table align=center width="75%"><tr><td>
  596. <h4><a name="FT_Set_Debug_Hook">FT_Set_Debug_Hook</a></h4>
  597. <table align=center width="87%"><tr><td>
  598. Defined in FT_MODULE_H (freetype/ftmodapi.h).
  599. </td></tr></table><br>
  600. <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
  601.  
  602.   FT_EXPORT( <span class="keyword">void</span> )
  603.   <b>FT_Set_Debug_Hook</b>( <a href="ft2-base_interface.html#FT_Library">FT_Library</a>         library,
  604.                      <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>            hook_index,
  605.                      FT_DebugHook_Func  debug_hook );
  606.  
  607. </pre></table><br>
  608. <table align=center width="87%"><tr><td>
  609. <p>Set a debug hook function for debugging the interpreter of a font format.</p>
  610. </td></tr></table><br>
  611. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
  612. <p></p>
  613. <table cellpadding=3 border=0>
  614. <tr valign=top><td><b>library</b></td><td>
  615. <p>A handle to the library object.</p>
  616. </td></tr>
  617. </table>
  618. </td></tr></table>
  619. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
  620. <p></p>
  621. <table cellpadding=3 border=0>
  622. <tr valign=top><td><b>hook_index</b></td><td>
  623. <p>The index of the debug hook. You should use the values defined in &lsquo;ftobjs.h&rsquo;, e.g., &lsquo;FT_DEBUG_HOOK_TRUETYPE&rsquo;.</p>
  624. </td></tr>
  625. <tr valign=top><td><b>debug_hook</b></td><td>
  626. <p>The function used to debug the interpreter.</p>
  627. </td></tr>
  628. </table>
  629. </td></tr></table>
  630. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
  631. <p>Currently, four debug hook slots are available, but only two (for the TrueType and the Type&nbsp;1 interpreter) are defined.</p>
  632. <p>Since the internal headers of FreeType are no longer installed, the symbol &lsquo;FT_DEBUG_HOOK_TRUETYPE&rsquo; isn't available publicly. This is a bug and will be fixed in a forthcoming release.</p>
  633. </td></tr></table>
  634. </td></tr></table>
  635. <hr width="75%">
  636. <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
  637. <td width="100%"></td>
  638. <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
  639.  
  640. <table align=center width="75%"><tr><td>
  641. <h4><a name="FT_Add_Default_Modules">FT_Add_Default_Modules</a></h4>
  642. <table align=center width="87%"><tr><td>
  643. Defined in FT_MODULE_H (freetype/ftmodapi.h).
  644. </td></tr></table><br>
  645. <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
  646.  
  647.  FT_EXPORT( <span class="keyword">void</span> )
  648.  <b>FT_Add_Default_Modules</b>( <a href="ft2-base_interface.html#FT_Library">FT_Library</a>  library );
  649.  
  650. </pre></table><br>
  651. <table align=center width="87%"><tr><td>
  652. <p>Add the set of default drivers to a given library object. This is only useful when you create a library object with <a href="ft2-module_management.html#FT_New_Library">FT_New_Library</a> (usually to plug a custom memory manager).</p>
  653. </td></tr></table><br>
  654. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
  655. <p></p>
  656. <table cellpadding=3 border=0>
  657. <tr valign=top><td><b>library</b></td><td>
  658. <p>A handle to a new library object.</p>
  659. </td></tr>
  660. </table>
  661. </td></tr></table>
  662. </td></tr></table>
  663. <hr width="75%">
  664. <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
  665. <td width="100%"></td>
  666. <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
  667.  
  668. <table align=center width="75%"><tr><td>
  669. <h4><a name="FT_Renderer_Class">FT_Renderer_Class</a></h4>
  670. <table align=center width="87%"><tr><td>
  671. Defined in FT_RENDER_H (freetype/ftrender.h).
  672. </td></tr></table><br>
  673. <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
  674.  
  675.  <span class="keyword">typedef</span> <span class="keyword">struct</span>  FT_Renderer_Class_
  676.  {
  677.    <a href="ft2-module_management.html#FT_Module_Class">FT_Module_Class</a>            root;
  678.  
  679.    <a href="ft2-basic_types.html#FT_Glyph_Format">FT_Glyph_Format</a>            glyph_format;
  680.  
  681.    FT_Renderer_RenderFunc     render_glyph;
  682.    FT_Renderer_TransformFunc  transform_glyph;
  683.    FT_Renderer_GetCBoxFunc    get_glyph_cbox;
  684.    FT_Renderer_SetModeFunc    set_mode;
  685.  
  686.    <a href="ft2-raster.html#FT_Raster_Funcs">FT_Raster_Funcs</a>*           raster_class;
  687.  
  688.  } <b>FT_Renderer_Class</b>;
  689.  
  690. </pre></table><br>
  691. <table align=center width="87%"><tr><td>
  692. <p>The renderer module class descriptor.</p>
  693. </td></tr></table><br>
  694. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>fields</b></em></td></tr><tr><td>
  695. <p></p>
  696. <table cellpadding=3 border=0>
  697. <tr valign=top><td><b>root</b></td><td>
  698. <p>The root <a href="ft2-module_management.html#FT_Module_Class">FT_Module_Class</a> fields.</p>
  699. </td></tr>
  700. <tr valign=top><td><b>glyph_format</b></td><td>
  701. <p>The glyph image format this renderer handles.</p>
  702. </td></tr>
  703. <tr valign=top><td><b>render_glyph</b></td><td>
  704. <p>A method used to render the image that is in a given glyph slot into a bitmap.</p>
  705. </td></tr>
  706. <tr valign=top><td><b>transform_glyph</b></td><td>
  707. <p>A method used to transform the image that is in a given glyph slot.</p>
  708. </td></tr>
  709. <tr valign=top><td><b>get_glyph_cbox</b></td><td>
  710. <p>A method used to access the glyph's cbox.</p>
  711. </td></tr>
  712. <tr valign=top><td><b>set_mode</b></td><td>
  713. <p>A method used to pass additional parameters.</p>
  714. </td></tr>
  715. <tr valign=top><td><b>raster_class</b></td><td>
  716. <p>For <a href="ft2-basic_types.html#FT_Glyph_Format">FT_GLYPH_FORMAT_OUTLINE</a> renderers only. This is a pointer to its raster's class.</p>
  717. </td></tr>
  718. </table>
  719. </td></tr></table>
  720. </td></tr></table>
  721. <hr width="75%">
  722. <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
  723. <td width="100%"></td>
  724. <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
  725.  
  726. <table align=center width="75%"><tr><td>
  727. <h4><a name="FT_Get_Renderer">FT_Get_Renderer</a></h4>
  728. <table align=center width="87%"><tr><td>
  729. Defined in FT_RENDER_H (freetype/ftrender.h).
  730. </td></tr></table><br>
  731. <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
  732.  
  733.  FT_EXPORT( <a href="ft2-base_interface.html#FT_Renderer">FT_Renderer</a> )
  734.  <b>FT_Get_Renderer</b>( <a href="ft2-base_interface.html#FT_Library">FT_Library</a>       library,
  735.                   <a href="ft2-basic_types.html#FT_Glyph_Format">FT_Glyph_Format</a>  format );
  736.  
  737. </pre></table><br>
  738. <table align=center width="87%"><tr><td>
  739. <p>Retrieve the current renderer for a given glyph format.</p>
  740. </td></tr></table><br>
  741. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
  742. <p></p>
  743. <table cellpadding=3 border=0>
  744. <tr valign=top><td><b>library</b></td><td>
  745. <p>A handle to the library object.</p>
  746. </td></tr>
  747. <tr valign=top><td><b>format</b></td><td>
  748. <p>The glyph format.</p>
  749. </td></tr>
  750. </table>
  751. </td></tr></table>
  752. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
  753. <p>A renderer handle. 0&nbsp;if none found.</p>
  754. </td></tr></table>
  755. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
  756. <p>An error will be returned if a module already exists by that name, or if the module requires a version of FreeType that is too great.</p>
  757. <p>To add a new renderer, simply use <a href="ft2-module_management.html#FT_Add_Module">FT_Add_Module</a>. To retrieve a renderer by its name, use <a href="ft2-module_management.html#FT_Get_Module">FT_Get_Module</a>.</p>
  758. </td></tr></table>
  759. </td></tr></table>
  760. <hr width="75%">
  761. <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
  762. <td width="100%"></td>
  763. <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
  764.  
  765. <table align=center width="75%"><tr><td>
  766. <h4><a name="FT_Set_Renderer">FT_Set_Renderer</a></h4>
  767. <table align=center width="87%"><tr><td>
  768. Defined in FT_RENDER_H (freetype/ftrender.h).
  769. </td></tr></table><br>
  770. <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
  771.  
  772.  FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
  773.  <b>FT_Set_Renderer</b>( <a href="ft2-base_interface.html#FT_Library">FT_Library</a>     library,
  774.                   <a href="ft2-base_interface.html#FT_Renderer">FT_Renderer</a>    renderer,
  775.                   <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>        num_params,
  776.                   <a href="ft2-base_interface.html#FT_Parameter">FT_Parameter</a>*  parameters );
  777.  
  778. </pre></table><br>
  779. <table align=center width="87%"><tr><td>
  780. <p>Set the current renderer to use, and set additional mode.</p>
  781. </td></tr></table><br>
  782. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
  783. <p></p>
  784. <table cellpadding=3 border=0>
  785. <tr valign=top><td><b>library</b></td><td>
  786. <p>A handle to the library object.</p>
  787. </td></tr>
  788. </table>
  789. </td></tr></table>
  790. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
  791. <p></p>
  792. <table cellpadding=3 border=0>
  793. <tr valign=top><td><b>renderer</b></td><td>
  794. <p>A handle to the renderer object.</p>
  795. </td></tr>
  796. <tr valign=top><td><b>num_params</b></td><td>
  797. <p>The number of additional parameters.</p>
  798. </td></tr>
  799. <tr valign=top><td><b>parameters</b></td><td>
  800. <p>Additional parameters.</p>
  801. </td></tr>
  802. </table>
  803. </td></tr></table>
  804. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
  805. <p>FreeType error code. 0&nbsp;means success.</p>
  806. </td></tr></table>
  807. <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
  808. <p>In case of success, the renderer will be used to convert glyph images in the renderer's known format into bitmaps.</p>
  809. <p>This doesn't change the current renderer for other formats.</p>
  810. <p>Currently, only the B/W renderer, if compiled with FT_RASTER_OPTION_ANTI_ALIASING (providing a 5-levels anti-aliasing mode; this option must be set directly in &lsquo;ftraster.c&rsquo; and is undefined by default) accepts a single tag &lsquo;pal5&rsquo; to set its gray palette as a character string with 5&nbsp;elements. Consequently, the third and fourth argument are zero normally.</p>
  811. </td></tr></table>
  812. </td></tr></table>
  813. <hr width="75%">
  814. <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
  815. <td width="100%"></td>
  816. <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
  817.  
  818. </body>
  819. </html>
  820.