Upload tizen 2.0 beta source
[framework/graphics/freetype.git] / docs / reference / ft2-base_interface.html
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.9 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.4.9 API Reference</h1></center>
39
40 <center><h1>
41 Base Interface
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_Library">FT_Library</a></td><td></td><td><a href="#FT_IS_TRICKY">FT_IS_TRICKY</a></td><td></td><td><a href="#FT_Load_Char">FT_Load_Char</a></td></tr>
46 <tr><td></td><td><a href="#FT_Face">FT_Face</a></td><td></td><td><a href="#FT_STYLE_FLAG_XXX">FT_STYLE_FLAG_XXX</a></td><td></td><td><a href="#FT_LOAD_XXX">FT_LOAD_XXX</a></td></tr>
47 <tr><td></td><td><a href="#FT_Size">FT_Size</a></td><td></td><td><a href="#FT_Size_Internal">FT_Size_Internal</a></td><td></td><td><a href="#FT_LOAD_TARGET_XXX">FT_LOAD_TARGET_XXX</a></td></tr>
48 <tr><td></td><td><a href="#FT_GlyphSlot">FT_GlyphSlot</a></td><td></td><td><a href="#FT_Size_Metrics">FT_Size_Metrics</a></td><td></td><td><a href="#FT_LOAD_TARGET_MODE">FT_LOAD_TARGET_MODE</a></td></tr>
49 <tr><td></td><td><a href="#FT_CharMap">FT_CharMap</a></td><td></td><td><a href="#FT_SizeRec">FT_SizeRec</a></td><td></td><td><a href="#FT_Set_Transform">FT_Set_Transform</a></td></tr>
50 <tr><td></td><td><a href="#FT_Encoding">FT_Encoding</a></td><td></td><td><a href="#FT_SubGlyph">FT_SubGlyph</a></td><td></td><td><a href="#FT_Render_Mode">FT_Render_Mode</a></td></tr>
51 <tr><td></td><td><a href="#FT_Glyph_Metrics">FT_Glyph_Metrics</a></td><td></td><td><a href="#FT_Slot_Internal">FT_Slot_Internal</a></td><td></td><td><a href="#ft_render_mode_xxx">ft_render_mode_xxx</a></td></tr>
52 <tr><td></td><td><a href="#FT_Bitmap_Size">FT_Bitmap_Size</a></td><td></td><td><a href="#FT_GlyphSlotRec">FT_GlyphSlotRec</a></td><td></td><td><a href="#FT_Render_Glyph">FT_Render_Glyph</a></td></tr>
53 <tr><td></td><td><a href="#FT_Module">FT_Module</a></td><td></td><td><a href="#FT_Init_FreeType">FT_Init_FreeType</a></td><td></td><td><a href="#FT_Kerning_Mode">FT_Kerning_Mode</a></td></tr>
54 <tr><td></td><td><a href="#FT_Driver">FT_Driver</a></td><td></td><td><a href="#FT_Done_FreeType">FT_Done_FreeType</a></td><td></td><td><a href="#ft_kerning_default">ft_kerning_default</a></td></tr>
55 <tr><td></td><td><a href="#FT_Renderer">FT_Renderer</a></td><td></td><td><a href="#FT_OPEN_XXX">FT_OPEN_XXX</a></td><td></td><td><a href="#ft_kerning_unfitted">ft_kerning_unfitted</a></td></tr>
56 <tr><td></td><td><a href="#FT_ENC_TAG">FT_ENC_TAG</a></td><td></td><td><a href="#FT_Parameter">FT_Parameter</a></td><td></td><td><a href="#ft_kerning_unscaled">ft_kerning_unscaled</a></td></tr>
57 <tr><td></td><td><a href="#ft_encoding_xxx">ft_encoding_xxx</a></td><td></td><td><a href="#FT_Open_Args">FT_Open_Args</a></td><td></td><td><a href="#FT_Get_Kerning">FT_Get_Kerning</a></td></tr>
58 <tr><td></td><td><a href="#FT_CharMapRec">FT_CharMapRec</a></td><td></td><td><a href="#FT_New_Face">FT_New_Face</a></td><td></td><td><a href="#FT_Get_Track_Kerning">FT_Get_Track_Kerning</a></td></tr>
59 <tr><td></td><td><a href="#FT_Face_Internal">FT_Face_Internal</a></td><td></td><td><a href="#FT_New_Memory_Face">FT_New_Memory_Face</a></td><td></td><td><a href="#FT_Get_Glyph_Name">FT_Get_Glyph_Name</a></td></tr>
60 <tr><td></td><td><a href="#FT_FaceRec">FT_FaceRec</a></td><td></td><td><a href="#FT_Open_Face">FT_Open_Face</a></td><td></td><td><a href="#FT_Get_Postscript_Name">FT_Get_Postscript_Name</a></td></tr>
61 <tr><td></td><td><a href="#FT_FACE_FLAG_XXX">FT_FACE_FLAG_XXX</a></td><td></td><td><a href="#FT_Attach_File">FT_Attach_File</a></td><td></td><td><a href="#FT_Select_Charmap">FT_Select_Charmap</a></td></tr>
62 <tr><td></td><td><a href="#FT_HAS_HORIZONTAL">FT_HAS_HORIZONTAL</a></td><td></td><td><a href="#FT_Attach_Stream">FT_Attach_Stream</a></td><td></td><td><a href="#FT_Set_Charmap">FT_Set_Charmap</a></td></tr>
63 <tr><td></td><td><a href="#FT_HAS_VERTICAL">FT_HAS_VERTICAL</a></td><td></td><td><a href="#FT_Reference_Face">FT_Reference_Face</a></td><td></td><td><a href="#FT_Get_Charmap_Index">FT_Get_Charmap_Index</a></td></tr>
64 <tr><td></td><td><a href="#FT_HAS_KERNING">FT_HAS_KERNING</a></td><td></td><td><a href="#FT_Done_Face">FT_Done_Face</a></td><td></td><td><a href="#FT_Get_Char_Index">FT_Get_Char_Index</a></td></tr>
65 <tr><td></td><td><a href="#FT_IS_SCALABLE">FT_IS_SCALABLE</a></td><td></td><td><a href="#FT_Select_Size">FT_Select_Size</a></td><td></td><td><a href="#FT_Get_First_Char">FT_Get_First_Char</a></td></tr>
66 <tr><td></td><td><a href="#FT_IS_SFNT">FT_IS_SFNT</a></td><td></td><td><a href="#FT_Size_Request_Type">FT_Size_Request_Type</a></td><td></td><td><a href="#FT_Get_Next_Char">FT_Get_Next_Char</a></td></tr>
67 <tr><td></td><td><a href="#FT_IS_FIXED_WIDTH">FT_IS_FIXED_WIDTH</a></td><td></td><td><a href="#FT_Size_RequestRec">FT_Size_RequestRec</a></td><td></td><td><a href="#FT_Get_Name_Index">FT_Get_Name_Index</a></td></tr>
68 <tr><td></td><td><a href="#FT_HAS_FIXED_SIZES">FT_HAS_FIXED_SIZES</a></td><td></td><td><a href="#FT_Size_Request">FT_Size_Request</a></td><td></td><td><a href="#FT_SUBGLYPH_FLAG_XXX">FT_SUBGLYPH_FLAG_XXX</a></td></tr>
69 <tr><td></td><td><a href="#FT_HAS_FAST_GLYPHS">FT_HAS_FAST_GLYPHS</a></td><td></td><td><a href="#FT_Request_Size">FT_Request_Size</a></td><td></td><td><a href="#FT_Get_SubGlyph_Info">FT_Get_SubGlyph_Info</a></td></tr>
70 <tr><td></td><td><a href="#FT_HAS_GLYPH_NAMES">FT_HAS_GLYPH_NAMES</a></td><td></td><td><a href="#FT_Set_Char_Size">FT_Set_Char_Size</a></td><td></td><td><a href="#FT_FSTYPE_XXX">FT_FSTYPE_XXX</a></td></tr>
71 <tr><td></td><td><a href="#FT_HAS_MULTIPLE_MASTERS">FT_HAS_MULTIPLE_MASTERS</a></td><td></td><td><a href="#FT_Set_Pixel_Sizes">FT_Set_Pixel_Sizes</a></td><td></td><td><a href="#FT_Get_FSType_Flags">FT_Get_FSType_Flags</a></td></tr>
72 <tr><td></td><td><a href="#FT_IS_CID_KEYED">FT_IS_CID_KEYED</a></td><td></td><td><a href="#FT_Load_Glyph">FT_Load_Glyph</a></td><td></td><td></td></tr>
73 </table><br><br>
74
75 <table align=center width="87%"><tr><td>
76 <p>This section describes the public high-level API of FreeType&nbsp;2.</p>
77 </td></tr></table><br>
78 <table align=center width="75%"><tr><td>
79 <h4><a name="FT_Library">FT_Library</a></h4>
80 <table align=center width="87%"><tr><td>
81 Defined in FT_FREETYPE_H (freetype/freetype.h).
82 </td></tr></table><br>
83 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
84
85   <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_LibraryRec_  *<b>FT_Library</b>;
86
87 </pre></table><br>
88 <table align=center width="87%"><tr><td>
89 <p>A handle to a FreeType library instance. Each &lsquo;library&rsquo; is completely independent from the others; it is the &lsquo;root&rsquo; of a set of objects like fonts, faces, sizes, etc.</p>
90 <p>It also embeds a memory manager (see <a href="ft2-system_interface.html#FT_Memory">FT_Memory</a>), as well as a scan-line converter object (see <a href="ft2-raster.html#FT_Raster">FT_Raster</a>).</p>
91 <p>For multi-threading applications each thread should have its own FT_Library object.</p>
92 </td></tr></table><br>
93 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
94 <p>Library objects are normally created by <a href="ft2-base_interface.html#FT_Init_FreeType">FT_Init_FreeType</a>, and destroyed with <a href="ft2-base_interface.html#FT_Done_FreeType">FT_Done_FreeType</a>.</p>
95 </td></tr></table>
96 </td></tr></table>
97 <hr width="75%">
98 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
99 <td width="100%"></td>
100 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
101
102 <table align=center width="75%"><tr><td>
103 <h4><a name="FT_Face">FT_Face</a></h4>
104 <table align=center width="87%"><tr><td>
105 Defined in FT_FREETYPE_H (freetype/freetype.h).
106 </td></tr></table><br>
107 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
108
109   <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_FaceRec_*  <b>FT_Face</b>;
110
111 </pre></table><br>
112 <table align=center width="87%"><tr><td>
113 <p>A handle to a given typographic face object. A face object models a given typeface, in a given style.</p>
114 </td></tr></table><br>
115 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
116 <p>Each face object also owns a single <a href="ft2-base_interface.html#FT_GlyphSlot">FT_GlyphSlot</a> object, as well as one or more <a href="ft2-base_interface.html#FT_Size">FT_Size</a> objects.</p>
117 <p>Use <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> to create a new face object from a given filepathname or a custom input stream.</p>
118 <p>Use <a href="ft2-base_interface.html#FT_Done_Face">FT_Done_Face</a> to destroy it (along with its slot and sizes).</p>
119 </td></tr></table>
120 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>also</b></em></td></tr><tr><td>
121 <p>See <a href="ft2-base_interface.html#FT_FaceRec">FT_FaceRec</a> for the publicly accessible fields of a given face object.</p>
122 </td></tr></table>
123 </td></tr></table>
124 <hr width="75%">
125 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
126 <td width="100%"></td>
127 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
128
129 <table align=center width="75%"><tr><td>
130 <h4><a name="FT_Size">FT_Size</a></h4>
131 <table align=center width="87%"><tr><td>
132 Defined in FT_FREETYPE_H (freetype/freetype.h).
133 </td></tr></table><br>
134 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
135
136   <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_SizeRec_*  <b>FT_Size</b>;
137
138 </pre></table><br>
139 <table align=center width="87%"><tr><td>
140 <p>A handle to an object used to model a face scaled to a given character size.</p>
141 </td></tr></table><br>
142 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
143 <p>Each <a href="ft2-base_interface.html#FT_Face">FT_Face</a> has an <i>active</i> <a href="ft2-base_interface.html#FT_Size">FT_Size</a> object that is used by functions like <a href="ft2-base_interface.html#FT_Load_Glyph">FT_Load_Glyph</a> to determine the scaling transformation which is used to load and hint glyphs and metrics.</p>
144 <p>You can use <a href="ft2-base_interface.html#FT_Set_Char_Size">FT_Set_Char_Size</a>, <a href="ft2-base_interface.html#FT_Set_Pixel_Sizes">FT_Set_Pixel_Sizes</a>, <a href="ft2-base_interface.html#FT_Request_Size">FT_Request_Size</a> or even <a href="ft2-base_interface.html#FT_Select_Size">FT_Select_Size</a> to change the content (i.e., the scaling values) of the active <a href="ft2-base_interface.html#FT_Size">FT_Size</a>.</p>
145 <p>You can use <a href="ft2-sizes_management.html#FT_New_Size">FT_New_Size</a> to create additional size objects for a given <a href="ft2-base_interface.html#FT_Face">FT_Face</a>, but they won't be used by other functions until you activate it through <a href="ft2-sizes_management.html#FT_Activate_Size">FT_Activate_Size</a>. Only one size can be activated at any given time per face.</p>
146 </td></tr></table>
147 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>also</b></em></td></tr><tr><td>
148 <p>See <a href="ft2-base_interface.html#FT_SizeRec">FT_SizeRec</a> for the publicly accessible fields of a given size object.</p>
149 </td></tr></table>
150 </td></tr></table>
151 <hr width="75%">
152 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
153 <td width="100%"></td>
154 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
155
156 <table align=center width="75%"><tr><td>
157 <h4><a name="FT_GlyphSlot">FT_GlyphSlot</a></h4>
158 <table align=center width="87%"><tr><td>
159 Defined in FT_FREETYPE_H (freetype/freetype.h).
160 </td></tr></table><br>
161 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
162
163   <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_GlyphSlotRec_*  <b>FT_GlyphSlot</b>;
164
165 </pre></table><br>
166 <table align=center width="87%"><tr><td>
167 <p>A handle to a given &lsquo;glyph slot&rsquo;. A slot is a container where it is possible to load any of the glyphs contained in its parent face.</p>
168 <p>In other words, each time you call <a href="ft2-base_interface.html#FT_Load_Glyph">FT_Load_Glyph</a> or <a href="ft2-base_interface.html#FT_Load_Char">FT_Load_Char</a>, the slot's content is erased by the new glyph data, i.e., the glyph's metrics, its image (bitmap or outline), and other control information.</p>
169 </td></tr></table><br>
170 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>also</b></em></td></tr><tr><td>
171 <p>See <a href="ft2-base_interface.html#FT_GlyphSlotRec">FT_GlyphSlotRec</a> for the publicly accessible glyph fields.</p>
172 </td></tr></table>
173 </td></tr></table>
174 <hr width="75%">
175 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
176 <td width="100%"></td>
177 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
178
179 <table align=center width="75%"><tr><td>
180 <h4><a name="FT_CharMap">FT_CharMap</a></h4>
181 <table align=center width="87%"><tr><td>
182 Defined in FT_FREETYPE_H (freetype/freetype.h).
183 </td></tr></table><br>
184 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
185
186   <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_CharMapRec_*  <b>FT_CharMap</b>;
187
188 </pre></table><br>
189 <table align=center width="87%"><tr><td>
190 <p>A handle to a given character map. A charmap is used to translate character codes in a given encoding into glyph indexes for its parent's face. Some font formats may provide several charmaps per font.</p>
191 <p>Each face object owns zero or more charmaps, but only one of them can be &lsquo;active&rsquo; and used by <a href="ft2-base_interface.html#FT_Get_Char_Index">FT_Get_Char_Index</a> or <a href="ft2-base_interface.html#FT_Load_Char">FT_Load_Char</a>.</p>
192 <p>The list of available charmaps in a face is available through the &lsquo;face-&gt;num_charmaps&rsquo; and &lsquo;face-&gt;charmaps&rsquo; fields of <a href="ft2-base_interface.html#FT_FaceRec">FT_FaceRec</a>.</p>
193 <p>The currently active charmap is available as &lsquo;face-&gt;charmap&rsquo;. You should call <a href="ft2-base_interface.html#FT_Set_Charmap">FT_Set_Charmap</a> to change it.</p>
194 </td></tr></table><br>
195 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
196 <p>When a new face is created (either through <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>), the library looks for a Unicode charmap within the list and automatically activates it.</p>
197 </td></tr></table>
198 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>also</b></em></td></tr><tr><td>
199 <p>See <a href="ft2-base_interface.html#FT_CharMapRec">FT_CharMapRec</a> for the publicly accessible fields of a given character map.</p>
200 </td></tr></table>
201 </td></tr></table>
202 <hr width="75%">
203 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
204 <td width="100%"></td>
205 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
206
207 <table align=center width="75%"><tr><td>
208 <h4><a name="FT_Encoding">FT_Encoding</a></h4>
209 <table align=center width="87%"><tr><td>
210 Defined in FT_FREETYPE_H (freetype/freetype.h).
211 </td></tr></table><br>
212 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
213
214   <span class="keyword">typedef</span> <span class="keyword">enum</span>  FT_Encoding_
215   {
216     <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_NONE</a>, 0, 0, 0, 0 ),
217
218     <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_MS_SYMBOL</a>, 's', 'y', 'm', 'b' ),
219     <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_UNICODE</a>,   'u', 'n', 'i', 'c' ),
220
221     <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_SJIS</a>,    's', 'j', 'i', 's' ),
222     <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_GB2312</a>,  'g', 'b', ' ', ' ' ),
223     <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_BIG5</a>,    'b', 'i', 'g', '5' ),
224     <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_WANSUNG</a>, 'w', 'a', 'n', 's' ),
225     <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_JOHAB</a>,   'j', 'o', 'h', 'a' ),
226
227     /* for backwards compatibility */
228     <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_MS_SJIS</a>    = <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_SJIS</a>,
229     <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_MS_GB2312</a>  = <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_GB2312</a>,
230     <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_MS_BIG5</a>    = <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_BIG5</a>,
231     <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_MS_WANSUNG</a> = <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_WANSUNG</a>,
232     <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_MS_JOHAB</a>   = <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_JOHAB</a>,
233
234     <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_ADOBE_STANDARD</a>, 'A', 'D', 'O', 'B' ),
235     <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_ADOBE_EXPERT</a>,   'A', 'D', 'B', 'E' ),
236     <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_ADOBE_CUSTOM</a>,   'A', 'D', 'B', 'C' ),
237     <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_ADOBE_LATIN_1</a>,  'l', 'a', 't', '1' ),
238
239     <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_OLD_LATIN_2</a>, 'l', 'a', 't', '2' ),
240
241     <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_APPLE_ROMAN</a>, 'a', 'r', 'm', 'n' )
242
243   } <b>FT_Encoding</b>;
244
245 </pre></table><br>
246 <table align=center width="87%"><tr><td>
247 <p>An enumeration used to specify character sets supported by charmaps. Used in the <a href="ft2-base_interface.html#FT_Select_Charmap">FT_Select_Charmap</a> API function.</p>
248 </td></tr></table><br>
249 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
250 <p>Despite the name, this enumeration lists specific character repertories (i.e., charsets), and not text encoding methods (e.g., UTF-8, UTF-16, etc.).</p>
251 <p>Other encodings might be defined in the future.</p>
252 </td></tr></table>
253 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td>
254 <p></p>
255 <table cellpadding=3 border=0>
256 <tr valign=top><td><b>FT_ENCODING_NONE</b></td><td>
257 <p>The encoding value&nbsp;0 is reserved.</p>
258 </td></tr>
259 <tr valign=top><td><b>FT_ENCODING_UNICODE</b></td><td>
260 <p>Corresponds to the Unicode character set. This value covers all versions of the Unicode repertoire, including ASCII and Latin-1. Most fonts include a Unicode charmap, but not all of them.</p>
261 <p>For example, if you want to access Unicode value U+1F028 (and the font contains it), use value 0x1F028 as the input value for <a href="ft2-base_interface.html#FT_Get_Char_Index">FT_Get_Char_Index</a>.</p>
262 </td></tr>
263 <tr valign=top><td><b>FT_ENCODING_MS_SYMBOL</b></td><td>
264 <p>Corresponds to the Microsoft Symbol encoding, used to encode mathematical symbols in the 32..255 character code range. For more information, see &lsquo;http://www.ceviz.net/symbol.htm&rsquo;.</p>
265 </td></tr>
266 <tr valign=top><td><b>FT_ENCODING_SJIS</b></td><td>
267 <p>Corresponds to Japanese SJIS encoding. More info at at &lsquo;http://langsupport.japanreference.com/encoding.shtml&rsquo;. See note on multi-byte encodings below.</p>
268 </td></tr>
269 <tr valign=top><td><b>FT_ENCODING_GB2312</b></td><td>
270 <p>Corresponds to an encoding system for Simplified Chinese as used used in mainland China.</p>
271 </td></tr>
272 <tr valign=top><td><b>FT_ENCODING_BIG5</b></td><td>
273 <p>Corresponds to an encoding system for Traditional Chinese as used in Taiwan and Hong Kong.</p>
274 </td></tr>
275 <tr valign=top><td><b>FT_ENCODING_WANSUNG</b></td><td>
276 <p>Corresponds to the Korean encoding system known as Wansung. For more information see &lsquo;http://www.microsoft.com/typography/unicode/949.txt&rsquo;.</p>
277 </td></tr>
278 <tr valign=top><td><b>FT_ENCODING_JOHAB</b></td><td>
279 <p>The Korean standard character set (KS&nbsp;C 5601-1992), which corresponds to MS Windows code page 1361. This character set includes all possible Hangeul character combinations.</p>
280 </td></tr>
281 <tr valign=top><td colspan=0><b>FT_ENCODING_ADOBE_LATIN_1</b></td></tr>
282 <tr valign=top><td></td><td>
283 <p>Corresponds to a Latin-1 encoding as defined in a Type&nbsp;1 PostScript font. It is limited to 256 character codes.</p>
284 </td></tr>
285 <tr valign=top><td colspan=0><b>FT_ENCODING_ADOBE_STANDARD</b></td></tr>
286 <tr valign=top><td></td><td>
287 <p>Corresponds to the Adobe Standard encoding, as found in Type&nbsp;1, CFF, and OpenType/CFF fonts. It is limited to 256 character codes.</p>
288 </td></tr>
289 <tr valign=top><td colspan=0><b>FT_ENCODING_ADOBE_EXPERT</b></td></tr>
290 <tr valign=top><td></td><td>
291 <p>Corresponds to the Adobe Expert encoding, as found in Type&nbsp;1, CFF, and OpenType/CFF fonts. It is limited to 256 character codes.</p>
292 </td></tr>
293 <tr valign=top><td colspan=0><b>FT_ENCODING_ADOBE_CUSTOM</b></td></tr>
294 <tr valign=top><td></td><td>
295 <p>Corresponds to a custom encoding, as found in Type&nbsp;1, CFF, and OpenType/CFF fonts. It is limited to 256 character codes.</p>
296 </td></tr>
297 <tr valign=top><td colspan=0><b>FT_ENCODING_APPLE_ROMAN</b></td></tr>
298 <tr valign=top><td></td><td>
299 <p>Corresponds to the 8-bit Apple roman encoding. Many TrueType and OpenType fonts contain a charmap for this encoding, since older versions of Mac OS are able to use it.</p>
300 </td></tr>
301 <tr valign=top><td colspan=0><b>FT_ENCODING_OLD_LATIN_2</b></td></tr>
302 <tr valign=top><td></td><td>
303 <p>This value is deprecated and was never used nor reported by FreeType. Don't use or test for it.</p>
304 </td></tr>
305 <tr valign=top><td><b>FT_ENCODING_MS_SJIS</b></td><td>
306 <p>Same as FT_ENCODING_SJIS. Deprecated.</p>
307 </td></tr>
308 <tr valign=top><td><b>FT_ENCODING_MS_GB2312</b></td><td>
309 <p>Same as FT_ENCODING_GB2312. Deprecated.</p>
310 </td></tr>
311 <tr valign=top><td><b>FT_ENCODING_MS_BIG5</b></td><td>
312 <p>Same as FT_ENCODING_BIG5. Deprecated.</p>
313 </td></tr>
314 <tr valign=top><td><b>FT_ENCODING_MS_WANSUNG</b></td><td>
315 <p>Same as FT_ENCODING_WANSUNG. Deprecated.</p>
316 </td></tr>
317 <tr valign=top><td><b>FT_ENCODING_MS_JOHAB</b></td><td>
318 <p>Same as FT_ENCODING_JOHAB. Deprecated.</p>
319 </td></tr>
320 </table>
321 </td></tr></table>
322 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
323 <p>By default, FreeType automatically synthesizes a Unicode charmap for PostScript fonts, using their glyph names dictionaries. However, it also reports the encodings defined explicitly in the font file, for the cases when they are needed, with the Adobe values as well.</p>
324 <p>FT_ENCODING_NONE is set by the BDF and PCF drivers if the charmap is neither Unicode nor ISO-8859-1 (otherwise it is set to FT_ENCODING_UNICODE). Use <a href="ft2-bdf_fonts.html#FT_Get_BDF_Charset_ID">FT_Get_BDF_Charset_ID</a> to find out which encoding is really present. If, for example, the &lsquo;cs_registry&rsquo; field is &lsquo;KOI8&rsquo; and the &lsquo;cs_encoding&rsquo; field is &lsquo;R&rsquo;, the font is encoded in KOI8-R.</p>
325 <p>FT_ENCODING_NONE is always set (with a single exception) by the winfonts driver. Use <a href="ft2-winfnt_fonts.html#FT_Get_WinFNT_Header">FT_Get_WinFNT_Header</a> and examine the &lsquo;charset&rsquo; field of the <a href="ft2-winfnt_fonts.html#FT_WinFNT_HeaderRec">FT_WinFNT_HeaderRec</a> structure to find out which encoding is really present. For example, <a href="ft2-winfnt_fonts.html#FT_WinFNT_ID_XXX">FT_WinFNT_ID_CP1251</a> (204) means Windows code page 1251 (for Russian).</p>
326 <p>FT_ENCODING_NONE is set if &lsquo;platform_id&rsquo; is <a href="ft2-truetype_tables.html#TT_PLATFORM_XXX">TT_PLATFORM_MACINTOSH</a> and &lsquo;encoding_id&rsquo; is not <a href="ft2-truetype_tables.html#TT_MAC_ID_XXX">TT_MAC_ID_ROMAN</a> (otherwise it is set to FT_ENCODING_APPLE_ROMAN).</p>
327 <p>If &lsquo;platform_id&rsquo; is <a href="ft2-truetype_tables.html#TT_PLATFORM_XXX">TT_PLATFORM_MACINTOSH</a>, use the function <a href="ft2-truetype_tables.html#FT_Get_CMap_Language_ID">FT_Get_CMap_Language_ID</a> to query the Mac language ID which may be needed to be able to distinguish Apple encoding variants. See</p>
328 <p>http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/README.TXT</p>
329 <p>to get an idea how to do that. Basically, if the language ID is&nbsp;0, don't use it, otherwise subtract 1 from the language ID. Then examine &lsquo;encoding_id&rsquo;. If, for example, &lsquo;encoding_id&rsquo; is <a href="ft2-truetype_tables.html#TT_MAC_ID_XXX">TT_MAC_ID_ROMAN</a> and the language ID (minus&nbsp;1) is &lsquo;TT_MAC_LANGID_GREEK&rsquo;, it is the Greek encoding, not Roman. <a href="ft2-truetype_tables.html#TT_MAC_ID_XXX">TT_MAC_ID_ARABIC</a> with &lsquo;TT_MAC_LANGID_FARSI&rsquo; means the Farsi variant the Arabic encoding.</p>
330 </td></tr></table>
331 </td></tr></table>
332 <hr width="75%">
333 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
334 <td width="100%"></td>
335 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
336
337 <table align=center width="75%"><tr><td>
338 <h4><a name="FT_Glyph_Metrics">FT_Glyph_Metrics</a></h4>
339 <table align=center width="87%"><tr><td>
340 Defined in FT_FREETYPE_H (freetype/freetype.h).
341 </td></tr></table><br>
342 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
343
344   <span class="keyword">typedef</span> <span class="keyword">struct</span>  FT_Glyph_Metrics_
345   {
346     <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a>  width;
347     <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a>  height;
348
349     <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a>  horiBearingX;
350     <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a>  horiBearingY;
351     <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a>  horiAdvance;
352
353     <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a>  vertBearingX;
354     <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a>  vertBearingY;
355     <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a>  vertAdvance;
356
357   } <b>FT_Glyph_Metrics</b>;
358
359 </pre></table><br>
360 <table align=center width="87%"><tr><td>
361 <p>A structure used to model the metrics of a single glyph. The values are expressed in 26.6 fractional pixel format; if the flag <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_SCALE</a> has been used while loading the glyph, values are expressed in font units instead.</p>
362 </td></tr></table><br>
363 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>fields</b></em></td></tr><tr><td>
364 <p></p>
365 <table cellpadding=3 border=0>
366 <tr valign=top><td><b>width</b></td><td>
367 <p>The glyph's width.</p>
368 </td></tr>
369 <tr valign=top><td><b>height</b></td><td>
370 <p>The glyph's height.</p>
371 </td></tr>
372 <tr valign=top><td><b>horiBearingX</b></td><td>
373 <p>Left side bearing for horizontal layout.</p>
374 </td></tr>
375 <tr valign=top><td><b>horiBearingY</b></td><td>
376 <p>Top side bearing for horizontal layout.</p>
377 </td></tr>
378 <tr valign=top><td><b>horiAdvance</b></td><td>
379 <p>Advance width for horizontal layout.</p>
380 </td></tr>
381 <tr valign=top><td><b>vertBearingX</b></td><td>
382 <p>Left side bearing for vertical layout.</p>
383 </td></tr>
384 <tr valign=top><td><b>vertBearingY</b></td><td>
385 <p>Top side bearing for vertical layout. Larger positive values mean further below the vertical glyph origin.</p>
386 </td></tr>
387 <tr valign=top><td><b>vertAdvance</b></td><td>
388 <p>Advance height for vertical layout. Positive values mean the glyph has a positive advance downward.</p>
389 </td></tr>
390 </table>
391 </td></tr></table>
392 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
393 <p>If not disabled with <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_HINTING</a>, the values represent dimensions of the hinted glyph (in case hinting is applicable).</p>
394 </td></tr></table>
395 </td></tr></table>
396 <hr width="75%">
397 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
398 <td width="100%"></td>
399 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
400
401 <table align=center width="75%"><tr><td>
402 <h4><a name="FT_Bitmap_Size">FT_Bitmap_Size</a></h4>
403 <table align=center width="87%"><tr><td>
404 Defined in FT_FREETYPE_H (freetype/freetype.h).
405 </td></tr></table><br>
406 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
407
408   <span class="keyword">typedef</span> <span class="keyword">struct</span>  FT_Bitmap_Size_
409   {
410     <a href="ft2-basic_types.html#FT_Short">FT_Short</a>  height;
411     <a href="ft2-basic_types.html#FT_Short">FT_Short</a>  width;
412
413     <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a>    size;
414
415     <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a>    x_ppem;
416     <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a>    y_ppem;
417
418   } <b>FT_Bitmap_Size</b>;
419
420 </pre></table><br>
421 <table align=center width="87%"><tr><td>
422 <p>This structure models the metrics of a bitmap strike (i.e., a set of glyphs for a given point size and resolution) in a bitmap font. It is used for the &lsquo;available_sizes&rsquo; field of <a href="ft2-base_interface.html#FT_Face">FT_Face</a>.</p>
423 </td></tr></table><br>
424 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>fields</b></em></td></tr><tr><td>
425 <p></p>
426 <table cellpadding=3 border=0>
427 <tr valign=top><td><b>height</b></td><td>
428 <p>The vertical distance, in pixels, between two consecutive baselines. It is always positive.</p>
429 </td></tr>
430 <tr valign=top><td><b>width</b></td><td>
431 <p>The average width, in pixels, of all glyphs in the strike.</p>
432 </td></tr>
433 <tr valign=top><td><b>size</b></td><td>
434 <p>The nominal size of the strike in 26.6 fractional points. This field is not very useful.</p>
435 </td></tr>
436 <tr valign=top><td><b>x_ppem</b></td><td>
437 <p>The horizontal ppem (nominal width) in 26.6 fractional pixels.</p>
438 </td></tr>
439 <tr valign=top><td><b>y_ppem</b></td><td>
440 <p>The vertical ppem (nominal height) in 26.6 fractional pixels.</p>
441 </td></tr>
442 </table>
443 </td></tr></table>
444 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
445 <p>Windows FNT: The nominal size given in a FNT font is not reliable. Thus when the driver finds it incorrect, it sets &lsquo;size&rsquo; to some calculated values and sets &lsquo;x_ppem&rsquo; and &lsquo;y_ppem&rsquo; to the pixel width and height given in the font, respectively.</p>
446 <p>TrueType embedded bitmaps: &lsquo;size&rsquo;, &lsquo;width&rsquo;, and &lsquo;height&rsquo; values are not contained in the bitmap strike itself. They are computed from the global font parameters.</p>
447 </td></tr></table>
448 </td></tr></table>
449 <hr width="75%">
450 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
451 <td width="100%"></td>
452 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
453
454 <table align=center width="75%"><tr><td>
455 <h4><a name="FT_Module">FT_Module</a></h4>
456 <table align=center width="87%"><tr><td>
457 Defined in FT_FREETYPE_H (freetype/freetype.h).
458 </td></tr></table><br>
459 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
460
461   <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_ModuleRec_*  <b>FT_Module</b>;
462
463 </pre></table><br>
464 <table align=center width="87%"><tr><td>
465 <p>A handle to a given FreeType module object. Each module can be a font driver, a renderer, or anything else that provides services to the formers.</p>
466 </td></tr></table><br>
467 </td></tr></table>
468 <hr width="75%">
469 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
470 <td width="100%"></td>
471 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
472
473 <table align=center width="75%"><tr><td>
474 <h4><a name="FT_Driver">FT_Driver</a></h4>
475 <table align=center width="87%"><tr><td>
476 Defined in FT_FREETYPE_H (freetype/freetype.h).
477 </td></tr></table><br>
478 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
479
480   <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_DriverRec_*  <b>FT_Driver</b>;
481
482 </pre></table><br>
483 <table align=center width="87%"><tr><td>
484 <p>A handle to a given FreeType font driver object. Each font driver is a special module capable of creating faces from font files.</p>
485 </td></tr></table><br>
486 </td></tr></table>
487 <hr width="75%">
488 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
489 <td width="100%"></td>
490 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
491
492 <table align=center width="75%"><tr><td>
493 <h4><a name="FT_Renderer">FT_Renderer</a></h4>
494 <table align=center width="87%"><tr><td>
495 Defined in FT_FREETYPE_H (freetype/freetype.h).
496 </td></tr></table><br>
497 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
498
499   <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_RendererRec_*  <b>FT_Renderer</b>;
500
501 </pre></table><br>
502 <table align=center width="87%"><tr><td>
503 <p>A handle to a given FreeType renderer. A renderer is a special module in charge of converting a glyph image to a bitmap, when necessary. Each renderer supports a given glyph image format, and one or more target surface depths.</p>
504 </td></tr></table><br>
505 </td></tr></table>
506 <hr width="75%">
507 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
508 <td width="100%"></td>
509 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
510
511 <table align=center width="75%"><tr><td>
512 <h4><a name="FT_ENC_TAG">FT_ENC_TAG</a></h4>
513 <table align=center width="87%"><tr><td>
514 Defined in FT_FREETYPE_H (freetype/freetype.h).
515 </td></tr></table><br>
516 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
517
518 #ifndef <b>FT_ENC_TAG</b>
519 #define <b>FT_ENC_TAG</b>( value, a, b, c, d )         \
520           value = ( ( (<a href="ft2-basic_types.html#FT_UInt32">FT_UInt32</a>)(a) &lt;&lt; 24 ) |  \
521                     ( (<a href="ft2-basic_types.html#FT_UInt32">FT_UInt32</a>)(b) &lt;&lt; 16 ) |  \
522                     ( (<a href="ft2-basic_types.html#FT_UInt32">FT_UInt32</a>)(c) &lt;&lt;  8 ) |  \
523                       (<a href="ft2-basic_types.html#FT_UInt32">FT_UInt32</a>)(d)         )
524
525 #endif /* <b>FT_ENC_TAG</b> */
526
527 </pre></table><br>
528 <table align=center width="87%"><tr><td>
529 <p>This macro converts four-letter tags into an unsigned long. It is used to define &lsquo;encoding&rsquo; identifiers (see <a href="ft2-base_interface.html#FT_Encoding">FT_Encoding</a>).</p>
530 </td></tr></table><br>
531 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
532 <p>Since many 16-bit compilers don't like 32-bit enumerations, you should redefine this macro in case of problems to something like this:</p>
533 <pre class="colored">
534   #define FT_ENC_TAG( value, a, b, c, d )  value                   
535 </pre>
536 <p>to get a simple enumeration without assigning special numbers.</p>
537 </td></tr></table>
538 </td></tr></table>
539 <hr width="75%">
540 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
541 <td width="100%"></td>
542 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
543
544 <table align=center width="75%"><tr><td>
545 <h4><a name="ft_encoding_xxx">ft_encoding_xxx</a></h4>
546 <table align=center width="87%"><tr><td>
547 Defined in FT_FREETYPE_H (freetype/freetype.h).
548 </td></tr></table><br>
549 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
550
551 #define ft_encoding_none            <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_NONE</a>
552 #define ft_encoding_unicode         <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_UNICODE</a>
553 #define ft_encoding_symbol          <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_MS_SYMBOL</a>
554 #define ft_encoding_latin_1         <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_ADOBE_LATIN_1</a>
555 #define ft_encoding_latin_2         <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_OLD_LATIN_2</a>
556 #define ft_encoding_sjis            <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_SJIS</a>
557 #define ft_encoding_gb2312          <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_GB2312</a>
558 #define ft_encoding_big5            <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_BIG5</a>
559 #define ft_encoding_wansung         <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_WANSUNG</a>
560 #define ft_encoding_johab           <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_JOHAB</a>
561
562 #define ft_encoding_adobe_standard  <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_ADOBE_STANDARD</a>
563 #define ft_encoding_adobe_expert    <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_ADOBE_EXPERT</a>
564 #define ft_encoding_adobe_custom    <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_ADOBE_CUSTOM</a>
565 #define ft_encoding_apple_roman     <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_APPLE_ROMAN</a>
566
567 </pre></table><br>
568 <table align=center width="87%"><tr><td>
569 <p>These constants are deprecated; use the corresponding <a href="ft2-base_interface.html#FT_Encoding">FT_Encoding</a> values instead.</p>
570 </td></tr></table><br>
571 </td></tr></table>
572 <hr width="75%">
573 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
574 <td width="100%"></td>
575 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
576
577 <table align=center width="75%"><tr><td>
578 <h4><a name="FT_CharMapRec">FT_CharMapRec</a></h4>
579 <table align=center width="87%"><tr><td>
580 Defined in FT_FREETYPE_H (freetype/freetype.h).
581 </td></tr></table><br>
582 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
583
584   <span class="keyword">typedef</span> <span class="keyword">struct</span>  FT_CharMapRec_
585   {
586     <a href="ft2-base_interface.html#FT_Face">FT_Face</a>      face;
587     <a href="ft2-base_interface.html#FT_Encoding">FT_Encoding</a>  encoding;
588     <a href="ft2-basic_types.html#FT_UShort">FT_UShort</a>    platform_id;
589     <a href="ft2-basic_types.html#FT_UShort">FT_UShort</a>    encoding_id;
590
591   } <b>FT_CharMapRec</b>;
592
593 </pre></table><br>
594 <table align=center width="87%"><tr><td>
595 <p>The base charmap structure.</p>
596 </td></tr></table><br>
597 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>fields</b></em></td></tr><tr><td>
598 <p></p>
599 <table cellpadding=3 border=0>
600 <tr valign=top><td><b>face</b></td><td>
601 <p>A handle to the parent face object.</p>
602 </td></tr>
603 <tr valign=top><td><b>encoding</b></td><td>
604 <p>An <a href="ft2-base_interface.html#FT_Encoding">FT_Encoding</a> tag identifying the charmap. Use this with <a href="ft2-base_interface.html#FT_Select_Charmap">FT_Select_Charmap</a>.</p>
605 </td></tr>
606 <tr valign=top><td><b>platform_id</b></td><td>
607 <p>An ID number describing the platform for the following encoding ID. This comes directly from the TrueType specification and should be emulated for other formats.</p>
608 </td></tr>
609 <tr valign=top><td><b>encoding_id</b></td><td>
610 <p>A platform specific encoding number. This also comes from the TrueType specification and should be emulated similarly.</p>
611 </td></tr>
612 </table>
613 </td></tr></table>
614 </td></tr></table>
615 <hr width="75%">
616 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
617 <td width="100%"></td>
618 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
619
620 <table align=center width="75%"><tr><td>
621 <h4><a name="FT_Face_Internal">FT_Face_Internal</a></h4>
622 <table align=center width="87%"><tr><td>
623 Defined in FT_FREETYPE_H (freetype/freetype.h).
624 </td></tr></table><br>
625 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
626
627   <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_Face_InternalRec_*  <b>FT_Face_Internal</b>;
628
629 </pre></table><br>
630 <table align=center width="87%"><tr><td>
631 <p>An opaque handle to an &lsquo;FT_Face_InternalRec&rsquo; structure, used to model private data of a given <a href="ft2-base_interface.html#FT_Face">FT_Face</a> object.</p>
632 <p>This structure might change between releases of FreeType&nbsp;2 and is not generally available to client applications.</p>
633 </td></tr></table><br>
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_FaceRec">FT_FaceRec</a></h4>
642 <table align=center width="87%"><tr><td>
643 Defined in FT_FREETYPE_H (freetype/freetype.h).
644 </td></tr></table><br>
645 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
646
647   <span class="keyword">typedef</span> <span class="keyword">struct</span>  FT_FaceRec_
648   {
649     <a href="ft2-basic_types.html#FT_Long">FT_Long</a>           num_faces;
650     <a href="ft2-basic_types.html#FT_Long">FT_Long</a>           face_index;
651
652     <a href="ft2-basic_types.html#FT_Long">FT_Long</a>           face_flags;
653     <a href="ft2-basic_types.html#FT_Long">FT_Long</a>           style_flags;
654
655     <a href="ft2-basic_types.html#FT_Long">FT_Long</a>           num_glyphs;
656
657     <a href="ft2-basic_types.html#FT_String">FT_String</a>*        family_name;
658     <a href="ft2-basic_types.html#FT_String">FT_String</a>*        style_name;
659
660     <a href="ft2-basic_types.html#FT_Int">FT_Int</a>            num_fixed_sizes;
661     <a href="ft2-base_interface.html#FT_Bitmap_Size">FT_Bitmap_Size</a>*   available_sizes;
662
663     <a href="ft2-basic_types.html#FT_Int">FT_Int</a>            num_charmaps;
664     <a href="ft2-base_interface.html#FT_CharMap">FT_CharMap</a>*       charmaps;
665
666     <a href="ft2-basic_types.html#FT_Generic">FT_Generic</a>        generic;
667
668     /*# The following member variables (down to `underline_thickness') */
669     /*# are only relevant to scalable outlines; cf. @<a href="ft2-base_interface.html#FT_Bitmap_Size">FT_Bitmap_Size</a>    */
670     /*# for bitmap fonts.                                              */
671     <a href="ft2-basic_types.html#FT_BBox">FT_BBox</a>           bbox;
672
673     <a href="ft2-basic_types.html#FT_UShort">FT_UShort</a>         units_per_EM;
674     <a href="ft2-basic_types.html#FT_Short">FT_Short</a>          ascender;
675     <a href="ft2-basic_types.html#FT_Short">FT_Short</a>          descender;
676     <a href="ft2-basic_types.html#FT_Short">FT_Short</a>          height;
677
678     <a href="ft2-basic_types.html#FT_Short">FT_Short</a>          max_advance_width;
679     <a href="ft2-basic_types.html#FT_Short">FT_Short</a>          max_advance_height;
680
681     <a href="ft2-basic_types.html#FT_Short">FT_Short</a>          underline_position;
682     <a href="ft2-basic_types.html#FT_Short">FT_Short</a>          underline_thickness;
683
684     <a href="ft2-base_interface.html#FT_GlyphSlot">FT_GlyphSlot</a>      glyph;
685     <a href="ft2-base_interface.html#FT_Size">FT_Size</a>           size;
686     <a href="ft2-base_interface.html#FT_CharMap">FT_CharMap</a>        charmap;
687
688     /*@private begin */
689
690     <a href="ft2-base_interface.html#FT_Driver">FT_Driver</a>         driver;
691     <a href="ft2-system_interface.html#FT_Memory">FT_Memory</a>         memory;
692     <a href="ft2-system_interface.html#FT_Stream">FT_Stream</a>         stream;
693
694     <a href="ft2-list_processing.html#FT_ListRec">FT_ListRec</a>        sizes_list;
695
696     <a href="ft2-basic_types.html#FT_Generic">FT_Generic</a>        autohint;   /* face-specific auto-hinter data */
697     <span class="keyword">void</span>*             extensions; /* unused                         */
698
699     <a href="ft2-base_interface.html#FT_Face_Internal">FT_Face_Internal</a>  internal;
700
701     /*@private end */
702
703   } <b>FT_FaceRec</b>;
704
705 </pre></table><br>
706 <table align=center width="87%"><tr><td>
707 <p>FreeType root face class structure. A face object models a typeface in a font file.</p>
708 </td></tr></table><br>
709 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>fields</b></em></td></tr><tr><td>
710 <p></p>
711 <table cellpadding=3 border=0>
712 <tr valign=top><td><b>num_faces</b></td><td>
713 <p>The number of faces in the font file. Some font formats can have multiple faces in a font file.</p>
714 </td></tr>
715 <tr valign=top><td><b>face_index</b></td><td>
716 <p>The index of the face in the font file. It is set to&nbsp;0 if there is only one face in the font file.</p>
717 </td></tr>
718 <tr valign=top><td><b>face_flags</b></td><td>
719 <p>A set of bit flags that give important information about the face; see <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_XXX</a> for the details.</p>
720 </td></tr>
721 <tr valign=top><td><b>style_flags</b></td><td>
722 <p>A set of bit flags indicating the style of the face; see <a href="ft2-base_interface.html#FT_STYLE_FLAG_XXX">FT_STYLE_FLAG_XXX</a> for the details.</p>
723 </td></tr>
724 <tr valign=top><td><b>num_glyphs</b></td><td>
725 <p>The number of glyphs in the face. If the face is scalable and has sbits (see &lsquo;num_fixed_sizes&rsquo;), it is set to the number of outline glyphs.</p>
726 <p>For CID-keyed fonts, this value gives the highest CID used in the font.</p>
727 </td></tr>
728 <tr valign=top><td><b>family_name</b></td><td>
729 <p>The face's family name. This is an ASCII string, usually in English, which describes the typeface's family (like &lsquo;Times New Roman&rsquo;, &lsquo;Bodoni&rsquo;, &lsquo;Garamond&rsquo;, etc). This is a least common denominator used to list fonts. Some formats (TrueType &amp; OpenType) provide localized and Unicode versions of this string. Applications should use the format specific interface to access them. Can be NULL (e.g., in fonts embedded in a PDF file).</p>
730 </td></tr>
731 <tr valign=top><td><b>style_name</b></td><td>
732 <p>The face's style name. This is an ASCII string, usually in English, which describes the typeface's style (like &lsquo;Italic&rsquo;, &lsquo;Bold&rsquo;, &lsquo;Condensed&rsquo;, etc). Not all font formats provide a style name, so this field is optional, and can be set to NULL. As for &lsquo;family_name&rsquo;, some formats provide localized and Unicode versions of this string. Applications should use the format specific interface to access them.</p>
733 </td></tr>
734 <tr valign=top><td><b>num_fixed_sizes</b></td><td>
735 <p>The number of bitmap strikes in the face. Even if the face is scalable, there might still be bitmap strikes, which are called &lsquo;sbits&rsquo; in that case.</p>
736 </td></tr>
737 <tr valign=top><td><b>available_sizes</b></td><td>
738 <p>An array of <a href="ft2-base_interface.html#FT_Bitmap_Size">FT_Bitmap_Size</a> for all bitmap strikes in the face. It is set to NULL if there is no bitmap strike.</p>
739 </td></tr>
740 <tr valign=top><td><b>num_charmaps</b></td><td>
741 <p>The number of charmaps in the face.</p>
742 </td></tr>
743 <tr valign=top><td><b>charmaps</b></td><td>
744 <p>An array of the charmaps of the face.</p>
745 </td></tr>
746 <tr valign=top><td><b>generic</b></td><td>
747 <p>A field reserved for client uses. See the <a href="ft2-basic_types.html#FT_Generic">FT_Generic</a> type description.</p>
748 </td></tr>
749 <tr valign=top><td><b>bbox</b></td><td>
750 <p>The font bounding box. Coordinates are expressed in font units (see &lsquo;units_per_EM&rsquo;). The box is large enough to contain any glyph from the font. Thus, &lsquo;bbox.yMax&rsquo; can be seen as the &lsquo;maximal ascender&rsquo;, and &lsquo;bbox.yMin&rsquo; as the &lsquo;minimal descender&rsquo;. Only relevant for scalable formats.</p>
751 <p>Note that the bounding box might be off by (at least) one pixel for hinted fonts. See <a href="ft2-base_interface.html#FT_Size_Metrics">FT_Size_Metrics</a> for further discussion.</p>
752 </td></tr>
753 <tr valign=top><td><b>units_per_EM</b></td><td>
754 <p>The number of font units per EM square for this face. This is typically 2048 for TrueType fonts, and 1000 for Type&nbsp;1 fonts. Only relevant for scalable formats.</p>
755 </td></tr>
756 <tr valign=top><td><b>ascender</b></td><td>
757 <p>The typographic ascender of the face, expressed in font units. For font formats not having this information, it is set to &lsquo;bbox.yMax&rsquo;. Only relevant for scalable formats.</p>
758 </td></tr>
759 <tr valign=top><td><b>descender</b></td><td>
760 <p>The typographic descender of the face, expressed in font units. For font formats not having this information, it is set to &lsquo;bbox.yMin&rsquo;. Note that this field is usually negative. Only relevant for scalable formats.</p>
761 </td></tr>
762 <tr valign=top><td><b>height</b></td><td>
763 <p>The height is the vertical distance between two consecutive baselines, expressed in font units. It is always positive. Only relevant for scalable formats.</p>
764 </td></tr>
765 <tr valign=top><td><b>max_advance_width</b></td><td>
766 <p>The maximal advance width, in font units, for all glyphs in this face. This can be used to make word wrapping computations faster. Only relevant for scalable formats.</p>
767 </td></tr>
768 <tr valign=top><td><b>max_advance_height</b></td><td>
769 <p>The maximal advance height, in font units, for all glyphs in this face. This is only relevant for vertical layouts, and is set to &lsquo;height&rsquo; for fonts that do not provide vertical metrics. Only relevant for scalable formats.</p>
770 </td></tr>
771 <tr valign=top><td><b>underline_position</b></td><td>
772 <p>The position, in font units, of the underline line for this face. It is the center of the underlining stem. Only relevant for scalable formats.</p>
773 </td></tr>
774 <tr valign=top><td><b>underline_thickness</b></td><td>
775 <p>The thickness, in font units, of the underline for this face. Only relevant for scalable formats.</p>
776 </td></tr>
777 <tr valign=top><td><b>glyph</b></td><td>
778 <p>The face's associated glyph slot(s).</p>
779 </td></tr>
780 <tr valign=top><td><b>size</b></td><td>
781 <p>The current active size for this face.</p>
782 </td></tr>
783 <tr valign=top><td><b>charmap</b></td><td>
784 <p>The current active charmap for this face.</p>
785 </td></tr>
786 </table>
787 </td></tr></table>
788 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
789 <p>Fields may be changed after a call to <a href="ft2-base_interface.html#FT_Attach_File">FT_Attach_File</a> or <a href="ft2-base_interface.html#FT_Attach_Stream">FT_Attach_Stream</a>.</p>
790 </td></tr></table>
791 </td></tr></table>
792 <hr width="75%">
793 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
794 <td width="100%"></td>
795 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
796
797 <table align=center width="75%"><tr><td>
798 <h4><a name="FT_FACE_FLAG_XXX">FT_FACE_FLAG_XXX</a></h4>
799 <table align=center width="87%"><tr><td>
800 Defined in FT_FREETYPE_H (freetype/freetype.h).
801 </td></tr></table><br>
802 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
803
804 #define <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_SCALABLE</a>          ( 1L &lt;&lt;  0 )
805 #define <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_FIXED_SIZES</a>       ( 1L &lt;&lt;  1 )
806 #define <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_FIXED_WIDTH</a>       ( 1L &lt;&lt;  2 )
807 #define <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_SFNT</a>              ( 1L &lt;&lt;  3 )
808 #define <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_HORIZONTAL</a>        ( 1L &lt;&lt;  4 )
809 #define <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_VERTICAL</a>          ( 1L &lt;&lt;  5 )
810 #define <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_KERNING</a>           ( 1L &lt;&lt;  6 )
811 #define <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_FAST_GLYPHS</a>       ( 1L &lt;&lt;  7 )
812 #define <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_MULTIPLE_MASTERS</a>  ( 1L &lt;&lt;  8 )
813 #define <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_GLYPH_NAMES</a>       ( 1L &lt;&lt;  9 )
814 #define <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_EXTERNAL_STREAM</a>   ( 1L &lt;&lt; 10 )
815 #define <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_HINTER</a>            ( 1L &lt;&lt; 11 )
816 #define <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_CID_KEYED</a>         ( 1L &lt;&lt; 12 )
817 #define <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_TRICKY</a>            ( 1L &lt;&lt; 13 )
818
819 </pre></table><br>
820 <table align=center width="87%"><tr><td>
821 <p>A list of bit flags used in the &lsquo;face_flags&rsquo; field of the <a href="ft2-base_interface.html#FT_FaceRec">FT_FaceRec</a> structure. They inform client applications of properties of the corresponding face.</p>
822 </td></tr></table><br>
823 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td>
824 <p></p>
825 <table cellpadding=3 border=0>
826 <tr valign=top><td><b>FT_FACE_FLAG_SCALABLE</b></td><td>
827 <p>Indicates that the face contains outline glyphs. This doesn't prevent bitmap strikes, i.e., a face can have both this and and <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_FIXED_SIZES</a> set.</p>
828 </td></tr>
829 <tr valign=top><td colspan=0><b>FT_FACE_FLAG_FIXED_SIZES</b></td></tr>
830 <tr valign=top><td></td><td>
831 <p>Indicates that the face contains bitmap strikes. See also the &lsquo;num_fixed_sizes&rsquo; and &lsquo;available_sizes&rsquo; fields of <a href="ft2-base_interface.html#FT_FaceRec">FT_FaceRec</a>.</p>
832 </td></tr>
833 <tr valign=top><td colspan=0><b>FT_FACE_FLAG_FIXED_WIDTH</b></td></tr>
834 <tr valign=top><td></td><td>
835 <p>Indicates that the face contains fixed-width characters (like Courier, Lucido, MonoType, etc.).</p>
836 </td></tr>
837 <tr valign=top><td><b>FT_FACE_FLAG_SFNT</b></td><td>
838 <p>Indicates that the face uses the &lsquo;sfnt&rsquo; storage scheme. For now, this means TrueType and OpenType.</p>
839 </td></tr>
840 <tr valign=top><td colspan=0><b>FT_FACE_FLAG_HORIZONTAL</b></td></tr>
841 <tr valign=top><td></td><td>
842 <p>Indicates that the face contains horizontal glyph metrics. This should be set for all common formats.</p>
843 </td></tr>
844 <tr valign=top><td><b>FT_FACE_FLAG_VERTICAL</b></td><td>
845 <p>Indicates that the face contains vertical glyph metrics. This is only available in some formats, not all of them.</p>
846 </td></tr>
847 <tr valign=top><td><b>FT_FACE_FLAG_KERNING</b></td><td>
848 <p>Indicates that the face contains kerning information. If set, the kerning distance can be retrieved through the function <a href="ft2-base_interface.html#FT_Get_Kerning">FT_Get_Kerning</a>. Otherwise the function always return the vector (0,0). Note that FreeType doesn't handle kerning data from the &lsquo;GPOS&rsquo; table (as present in some OpenType fonts).</p>
849 </td></tr>
850 <tr valign=top><td colspan=0><b>FT_FACE_FLAG_FAST_GLYPHS</b></td></tr>
851 <tr valign=top><td></td><td>
852 <p>THIS FLAG IS DEPRECATED. DO NOT USE OR TEST IT.</p>
853 </td></tr>
854 <tr valign=top><td colspan=0><b>FT_FACE_FLAG_MULTIPLE_MASTERS</b></td></tr>
855 <tr valign=top><td></td><td>
856 <p>Indicates that the font contains multiple masters and is capable of interpolating between them. See the multiple-masters specific API for details.</p>
857 </td></tr>
858 <tr valign=top><td colspan=0><b>FT_FACE_FLAG_GLYPH_NAMES</b></td></tr>
859 <tr valign=top><td></td><td>
860 <p>Indicates that the font contains glyph names that can be retrieved through <a href="ft2-base_interface.html#FT_Get_Glyph_Name">FT_Get_Glyph_Name</a>. Note that some TrueType fonts contain broken glyph name tables. Use the function <a href="ft2-type1_tables.html#FT_Has_PS_Glyph_Names">FT_Has_PS_Glyph_Names</a> when needed.</p>
861 </td></tr>
862 <tr valign=top><td colspan=0><b>FT_FACE_FLAG_EXTERNAL_STREAM</b></td></tr>
863 <tr valign=top><td></td><td>
864 <p>Used internally by FreeType to indicate that a face's stream was provided by the client application and should not be destroyed when <a href="ft2-base_interface.html#FT_Done_Face">FT_Done_Face</a> is called. Don't read or test this flag.</p>
865 </td></tr>
866 <tr valign=top><td><b>FT_FACE_FLAG_HINTER</b></td><td>
867 <p>Set if the font driver has a hinting machine of its own. For example, with TrueType fonts, it makes sense to use data from the SFNT &lsquo;gasp&rsquo; table only if the native TrueType hinting engine (with the bytecode interpreter) is available and active.</p>
868 </td></tr>
869 <tr valign=top><td><b>FT_FACE_FLAG_CID_KEYED</b></td><td>
870 <p>Set if the font is CID-keyed. In that case, the font is not accessed by glyph indices but by CID values. For subsetted CID-keyed fonts this has the consequence that not all index values are a valid argument to FT_Load_Glyph. Only the CID values for which corresponding glyphs in the subsetted font exist make FT_Load_Glyph return successfully; in all other cases you get an &lsquo;FT_Err_Invalid_Argument&rsquo; error.</p>
871 <p>Note that CID-keyed fonts which are in an SFNT wrapper don't have this flag set since the glyphs are accessed in the normal way (using contiguous indices); the &lsquo;CID-ness&rsquo; isn't visible to the application.</p>
872 </td></tr>
873 <tr valign=top><td><b>FT_FACE_FLAG_TRICKY</b></td><td>
874 <p>Set if the font is &lsquo;tricky&rsquo;, this is, it always needs the font format's native hinting engine to get a reasonable result. A typical example is the Chinese font &lsquo;mingli.ttf&rsquo; which uses TrueType bytecode instructions to move and scale all of its subglyphs.</p>
875 <p>It is not possible to autohint such fonts using <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_FORCE_AUTOHINT</a>; it will also ignore <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_HINTING</a>. You have to set both <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_HINTING</a> and <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_AUTOHINT</a> to really disable hinting; however, you probably never want this except for demonstration purposes.</p>
876 <p>Currently, there are about a dozen TrueType fonts in the list of tricky fonts; they are hard-coded in file &lsquo;ttobjs.c&rsquo;.</p>
877 </td></tr>
878 </table>
879 </td></tr></table>
880 </td></tr></table>
881 <hr width="75%">
882 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
883 <td width="100%"></td>
884 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
885
886 <table align=center width="75%"><tr><td>
887 <h4><a name="FT_HAS_HORIZONTAL">FT_HAS_HORIZONTAL</a></h4>
888 <table align=center width="87%"><tr><td>
889 Defined in FT_FREETYPE_H (freetype/freetype.h).
890 </td></tr></table><br>
891 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
892
893 #define <b>FT_HAS_HORIZONTAL</b>( face ) \
894           ( face-&gt;face_flags &amp; <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_HORIZONTAL</a> )
895
896 </pre></table><br>
897 <table align=center width="87%"><tr><td>
898 <p>A macro that returns true whenever a face object contains horizontal metrics (this is true for all font formats though).</p>
899 </td></tr></table><br>
900 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>also</b></em></td></tr><tr><td>
901 <p><a href="ft2-base_interface.html#FT_HAS_VERTICAL">FT_HAS_VERTICAL</a> can be used to check for vertical metrics.</p>
902 </td></tr></table>
903 </td></tr></table>
904 <hr width="75%">
905 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
906 <td width="100%"></td>
907 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
908
909 <table align=center width="75%"><tr><td>
910 <h4><a name="FT_HAS_VERTICAL">FT_HAS_VERTICAL</a></h4>
911 <table align=center width="87%"><tr><td>
912 Defined in FT_FREETYPE_H (freetype/freetype.h).
913 </td></tr></table><br>
914 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
915
916 #define <b>FT_HAS_VERTICAL</b>( face ) \
917           ( face-&gt;face_flags &amp; <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_VERTICAL</a> )
918
919 </pre></table><br>
920 <table align=center width="87%"><tr><td>
921 <p>A macro that returns true whenever a face object contains vertical metrics.</p>
922 </td></tr></table><br>
923 </td></tr></table>
924 <hr width="75%">
925 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
926 <td width="100%"></td>
927 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
928
929 <table align=center width="75%"><tr><td>
930 <h4><a name="FT_HAS_KERNING">FT_HAS_KERNING</a></h4>
931 <table align=center width="87%"><tr><td>
932 Defined in FT_FREETYPE_H (freetype/freetype.h).
933 </td></tr></table><br>
934 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
935
936 #define <b>FT_HAS_KERNING</b>( face ) \
937           ( face-&gt;face_flags &amp; <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_KERNING</a> )
938
939 </pre></table><br>
940 <table align=center width="87%"><tr><td>
941 <p>A macro that returns true whenever a face object contains kerning data that can be accessed with <a href="ft2-base_interface.html#FT_Get_Kerning">FT_Get_Kerning</a>.</p>
942 </td></tr></table><br>
943 </td></tr></table>
944 <hr width="75%">
945 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
946 <td width="100%"></td>
947 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
948
949 <table align=center width="75%"><tr><td>
950 <h4><a name="FT_IS_SCALABLE">FT_IS_SCALABLE</a></h4>
951 <table align=center width="87%"><tr><td>
952 Defined in FT_FREETYPE_H (freetype/freetype.h).
953 </td></tr></table><br>
954 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
955
956 #define <b>FT_IS_SCALABLE</b>( face ) \
957           ( face-&gt;face_flags &amp; <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_SCALABLE</a> )
958
959 </pre></table><br>
960 <table align=center width="87%"><tr><td>
961 <p>A macro that returns true whenever a face object contains a scalable font face (true for TrueType, Type&nbsp;1, Type&nbsp;42, CID, OpenType/CFF, and PFR font formats.</p>
962 </td></tr></table><br>
963 </td></tr></table>
964 <hr width="75%">
965 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
966 <td width="100%"></td>
967 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
968
969 <table align=center width="75%"><tr><td>
970 <h4><a name="FT_IS_SFNT">FT_IS_SFNT</a></h4>
971 <table align=center width="87%"><tr><td>
972 Defined in FT_FREETYPE_H (freetype/freetype.h).
973 </td></tr></table><br>
974 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
975
976 #define <b>FT_IS_SFNT</b>( face ) \
977           ( face-&gt;face_flags &amp; <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_SFNT</a> )
978
979 </pre></table><br>
980 <table align=center width="87%"><tr><td>
981 <p>A macro that returns true whenever a face object contains a font whose format is based on the SFNT storage scheme. This usually means: TrueType fonts, OpenType fonts, as well as SFNT-based embedded bitmap fonts.</p>
982 <p>If this macro is true, all functions defined in <a href="ft2-header_file_macros.html#FT_SFNT_NAMES_H">FT_SFNT_NAMES_H</a> and <a href="ft2-header_file_macros.html#FT_TRUETYPE_TABLES_H">FT_TRUETYPE_TABLES_H</a> are available.</p>
983 </td></tr></table><br>
984 </td></tr></table>
985 <hr width="75%">
986 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
987 <td width="100%"></td>
988 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
989
990 <table align=center width="75%"><tr><td>
991 <h4><a name="FT_IS_FIXED_WIDTH">FT_IS_FIXED_WIDTH</a></h4>
992 <table align=center width="87%"><tr><td>
993 Defined in FT_FREETYPE_H (freetype/freetype.h).
994 </td></tr></table><br>
995 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
996
997 #define <b>FT_IS_FIXED_WIDTH</b>( face ) \
998           ( face-&gt;face_flags &amp; <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_FIXED_WIDTH</a> )
999
1000 </pre></table><br>
1001 <table align=center width="87%"><tr><td>
1002 <p>A macro that returns true whenever a face object contains a font face that contains fixed-width (or &lsquo;monospace&rsquo;, &lsquo;fixed-pitch&rsquo;, etc.) glyphs.</p>
1003 </td></tr></table><br>
1004 </td></tr></table>
1005 <hr width="75%">
1006 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1007 <td width="100%"></td>
1008 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1009
1010 <table align=center width="75%"><tr><td>
1011 <h4><a name="FT_HAS_FIXED_SIZES">FT_HAS_FIXED_SIZES</a></h4>
1012 <table align=center width="87%"><tr><td>
1013 Defined in FT_FREETYPE_H (freetype/freetype.h).
1014 </td></tr></table><br>
1015 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1016
1017 #define <b>FT_HAS_FIXED_SIZES</b>( face ) \
1018           ( face-&gt;face_flags &amp; <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_FIXED_SIZES</a> )
1019
1020 </pre></table><br>
1021 <table align=center width="87%"><tr><td>
1022 <p>A macro that returns true whenever a face object contains some embedded bitmaps. See the &lsquo;available_sizes&rsquo; field of the <a href="ft2-base_interface.html#FT_FaceRec">FT_FaceRec</a> structure.</p>
1023 </td></tr></table><br>
1024 </td></tr></table>
1025 <hr width="75%">
1026 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1027 <td width="100%"></td>
1028 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1029
1030 <table align=center width="75%"><tr><td>
1031 <h4><a name="FT_HAS_FAST_GLYPHS">FT_HAS_FAST_GLYPHS</a></h4>
1032 <table align=center width="87%"><tr><td>
1033 Defined in FT_FREETYPE_H (freetype/freetype.h).
1034 </td></tr></table><br>
1035 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1036
1037 #define <b>FT_HAS_FAST_GLYPHS</b>( face )  0
1038
1039 </pre></table><br>
1040 <table align=center width="87%"><tr><td>
1041 <p>Deprecated.</p>
1042 </td></tr></table><br>
1043 </td></tr></table>
1044 <hr width="75%">
1045 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1046 <td width="100%"></td>
1047 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1048
1049 <table align=center width="75%"><tr><td>
1050 <h4><a name="FT_HAS_GLYPH_NAMES">FT_HAS_GLYPH_NAMES</a></h4>
1051 <table align=center width="87%"><tr><td>
1052 Defined in FT_FREETYPE_H (freetype/freetype.h).
1053 </td></tr></table><br>
1054 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1055
1056 #define <b>FT_HAS_GLYPH_NAMES</b>( face ) \
1057           ( face-&gt;face_flags &amp; <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_GLYPH_NAMES</a> )
1058
1059 </pre></table><br>
1060 <table align=center width="87%"><tr><td>
1061 <p>A macro that returns true whenever a face object contains some glyph names that can be accessed through <a href="ft2-base_interface.html#FT_Get_Glyph_Name">FT_Get_Glyph_Name</a>.</p>
1062 </td></tr></table><br>
1063 </td></tr></table>
1064 <hr width="75%">
1065 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1066 <td width="100%"></td>
1067 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1068
1069 <table align=center width="75%"><tr><td>
1070 <h4><a name="FT_HAS_MULTIPLE_MASTERS">FT_HAS_MULTIPLE_MASTERS</a></h4>
1071 <table align=center width="87%"><tr><td>
1072 Defined in FT_FREETYPE_H (freetype/freetype.h).
1073 </td></tr></table><br>
1074 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1075
1076 #define <b>FT_HAS_MULTIPLE_MASTERS</b>( face ) \
1077           ( face-&gt;face_flags &amp; <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_MULTIPLE_MASTERS</a> )
1078
1079 </pre></table><br>
1080 <table align=center width="87%"><tr><td>
1081 <p>A macro that returns true whenever a face object contains some multiple masters. The functions provided by <a href="ft2-header_file_macros.html#FT_MULTIPLE_MASTERS_H">FT_MULTIPLE_MASTERS_H</a> are then available to choose the exact design you want.</p>
1082 </td></tr></table><br>
1083 </td></tr></table>
1084 <hr width="75%">
1085 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1086 <td width="100%"></td>
1087 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1088
1089 <table align=center width="75%"><tr><td>
1090 <h4><a name="FT_IS_CID_KEYED">FT_IS_CID_KEYED</a></h4>
1091 <table align=center width="87%"><tr><td>
1092 Defined in FT_FREETYPE_H (freetype/freetype.h).
1093 </td></tr></table><br>
1094 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1095
1096 #define <b>FT_IS_CID_KEYED</b>( face ) \
1097           ( face-&gt;face_flags &amp; <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_CID_KEYED</a> )
1098
1099 </pre></table><br>
1100 <table align=center width="87%"><tr><td>
1101 <p>A macro that returns true whenever a face object contains a CID-keyed font. See the discussion of <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_CID_KEYED</a> for more details.</p>
1102 <p>If this macro is true, all functions defined in <a href="ft2-header_file_macros.html#FT_CID_H">FT_CID_H</a> are available.</p>
1103 </td></tr></table><br>
1104 </td></tr></table>
1105 <hr width="75%">
1106 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1107 <td width="100%"></td>
1108 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1109
1110 <table align=center width="75%"><tr><td>
1111 <h4><a name="FT_IS_TRICKY">FT_IS_TRICKY</a></h4>
1112 <table align=center width="87%"><tr><td>
1113 Defined in FT_FREETYPE_H (freetype/freetype.h).
1114 </td></tr></table><br>
1115 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1116
1117 #define <b>FT_IS_TRICKY</b>( face ) \
1118           ( face-&gt;face_flags &amp; <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_TRICKY</a> )
1119
1120 </pre></table><br>
1121 <table align=center width="87%"><tr><td>
1122 <p>A macro that returns true whenever a face represents a &lsquo;tricky&rsquo; font. See the discussion of <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_TRICKY</a> for more details.</p>
1123 </td></tr></table><br>
1124 </td></tr></table>
1125 <hr width="75%">
1126 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1127 <td width="100%"></td>
1128 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1129
1130 <table align=center width="75%"><tr><td>
1131 <h4><a name="FT_STYLE_FLAG_XXX">FT_STYLE_FLAG_XXX</a></h4>
1132 <table align=center width="87%"><tr><td>
1133 Defined in FT_FREETYPE_H (freetype/freetype.h).
1134 </td></tr></table><br>
1135 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1136
1137 #define <a href="ft2-base_interface.html#FT_STYLE_FLAG_XXX">FT_STYLE_FLAG_ITALIC</a>  ( 1 &lt;&lt; 0 )
1138 #define <a href="ft2-base_interface.html#FT_STYLE_FLAG_XXX">FT_STYLE_FLAG_BOLD</a>    ( 1 &lt;&lt; 1 )
1139
1140 </pre></table><br>
1141 <table align=center width="87%"><tr><td>
1142 <p>A list of bit-flags used to indicate the style of a given face. These are used in the &lsquo;style_flags&rsquo; field of <a href="ft2-base_interface.html#FT_FaceRec">FT_FaceRec</a>.</p>
1143 </td></tr></table><br>
1144 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td>
1145 <p></p>
1146 <table cellpadding=3 border=0>
1147 <tr valign=top><td><b>FT_STYLE_FLAG_ITALIC</b></td><td>
1148 <p>Indicates that a given face style is italic or oblique.</p>
1149 </td></tr>
1150 <tr valign=top><td><b>FT_STYLE_FLAG_BOLD</b></td><td>
1151 <p>Indicates that a given face is bold.</p>
1152 </td></tr>
1153 </table>
1154 </td></tr></table>
1155 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
1156 <p>The style information as provided by FreeType is very basic. More details are beyond the scope and should be done on a higher level (for example, by analyzing various fields of the &lsquo;OS/2&rsquo; table in SFNT based fonts).</p>
1157 </td></tr></table>
1158 </td></tr></table>
1159 <hr width="75%">
1160 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1161 <td width="100%"></td>
1162 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1163
1164 <table align=center width="75%"><tr><td>
1165 <h4><a name="FT_Size_Internal">FT_Size_Internal</a></h4>
1166 <table align=center width="87%"><tr><td>
1167 Defined in FT_FREETYPE_H (freetype/freetype.h).
1168 </td></tr></table><br>
1169 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1170
1171   <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_Size_InternalRec_*  <b>FT_Size_Internal</b>;
1172
1173 </pre></table><br>
1174 <table align=center width="87%"><tr><td>
1175 <p>An opaque handle to an &lsquo;FT_Size_InternalRec&rsquo; structure, used to model private data of a given <a href="ft2-base_interface.html#FT_Size">FT_Size</a> object.</p>
1176 </td></tr></table><br>
1177 </td></tr></table>
1178 <hr width="75%">
1179 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1180 <td width="100%"></td>
1181 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1182
1183 <table align=center width="75%"><tr><td>
1184 <h4><a name="FT_Size_Metrics">FT_Size_Metrics</a></h4>
1185 <table align=center width="87%"><tr><td>
1186 Defined in FT_FREETYPE_H (freetype/freetype.h).
1187 </td></tr></table><br>
1188 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1189
1190   <span class="keyword">typedef</span> <span class="keyword">struct</span>  FT_Size_Metrics_
1191   {
1192     <a href="ft2-basic_types.html#FT_UShort">FT_UShort</a>  x_ppem;      /* horizontal pixels per EM               */
1193     <a href="ft2-basic_types.html#FT_UShort">FT_UShort</a>  y_ppem;      /* vertical pixels per EM                 */
1194
1195     <a href="ft2-basic_types.html#FT_Fixed">FT_Fixed</a>   x_scale;     /* scaling values used to convert font    */
1196     <a href="ft2-basic_types.html#FT_Fixed">FT_Fixed</a>   y_scale;     /* units to 26.6 fractional pixels        */
1197
1198     <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a>     ascender;    /* ascender in 26.6 frac. pixels          */
1199     <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a>     descender;   /* descender in 26.6 frac. pixels         */
1200     <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a>     height;      /* text height in 26.6 frac. pixels       */
1201     <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a>     max_advance; /* max horizontal advance, in 26.6 pixels */
1202
1203   } <b>FT_Size_Metrics</b>;
1204
1205 </pre></table><br>
1206 <table align=center width="87%"><tr><td>
1207 <p>The size metrics structure gives the metrics of a size object.</p>
1208 </td></tr></table><br>
1209 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>fields</b></em></td></tr><tr><td>
1210 <p></p>
1211 <table cellpadding=3 border=0>
1212 <tr valign=top><td><b>x_ppem</b></td><td>
1213 <p>The width of the scaled EM square in pixels, hence the term &lsquo;ppem&rsquo; (pixels per EM). It is also referred to as &lsquo;nominal width&rsquo;.</p>
1214 </td></tr>
1215 <tr valign=top><td><b>y_ppem</b></td><td>
1216 <p>The height of the scaled EM square in pixels, hence the term &lsquo;ppem&rsquo; (pixels per EM). It is also referred to as &lsquo;nominal height&rsquo;.</p>
1217 </td></tr>
1218 <tr valign=top><td><b>x_scale</b></td><td>
1219 <p>A 16.16 fractional scaling value used to convert horizontal metrics from font units to 26.6 fractional pixels. Only relevant for scalable font formats.</p>
1220 </td></tr>
1221 <tr valign=top><td><b>y_scale</b></td><td>
1222 <p>A 16.16 fractional scaling value used to convert vertical metrics from font units to 26.6 fractional pixels. Only relevant for scalable font formats.</p>
1223 </td></tr>
1224 <tr valign=top><td><b>ascender</b></td><td>
1225 <p>The ascender in 26.6 fractional pixels. See <a href="ft2-base_interface.html#FT_FaceRec">FT_FaceRec</a> for the details.</p>
1226 </td></tr>
1227 <tr valign=top><td><b>descender</b></td><td>
1228 <p>The descender in 26.6 fractional pixels. See <a href="ft2-base_interface.html#FT_FaceRec">FT_FaceRec</a> for the details.</p>
1229 </td></tr>
1230 <tr valign=top><td><b>height</b></td><td>
1231 <p>The height in 26.6 fractional pixels. See <a href="ft2-base_interface.html#FT_FaceRec">FT_FaceRec</a> for the details.</p>
1232 </td></tr>
1233 <tr valign=top><td><b>max_advance</b></td><td>
1234 <p>The maximal advance width in 26.6 fractional pixels. See <a href="ft2-base_interface.html#FT_FaceRec">FT_FaceRec</a> for the details.</p>
1235 </td></tr>
1236 </table>
1237 </td></tr></table>
1238 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
1239 <p>The scaling values, if relevant, are determined first during a size changing operation. The remaining fields are then set by the driver. For scalable formats, they are usually set to scaled values of the corresponding fields in <a href="ft2-base_interface.html#FT_FaceRec">FT_FaceRec</a>.</p>
1240 <p>Note that due to glyph hinting, these values might not be exact for certain fonts. Thus they must be treated as unreliable with an error margin of at least one pixel!</p>
1241 <p>Indeed, the only way to get the exact metrics is to render <i>all</i> glyphs. As this would be a definite performance hit, it is up to client applications to perform such computations.</p>
1242 <p>The FT_Size_Metrics structure is valid for bitmap fonts also.</p>
1243 </td></tr></table>
1244 </td></tr></table>
1245 <hr width="75%">
1246 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1247 <td width="100%"></td>
1248 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1249
1250 <table align=center width="75%"><tr><td>
1251 <h4><a name="FT_SizeRec">FT_SizeRec</a></h4>
1252 <table align=center width="87%"><tr><td>
1253 Defined in FT_FREETYPE_H (freetype/freetype.h).
1254 </td></tr></table><br>
1255 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1256
1257   <span class="keyword">typedef</span> <span class="keyword">struct</span>  FT_SizeRec_
1258   {
1259     <a href="ft2-base_interface.html#FT_Face">FT_Face</a>           face;      /* parent face object              */
1260     <a href="ft2-basic_types.html#FT_Generic">FT_Generic</a>        generic;   /* generic pointer for client uses */
1261     <a href="ft2-base_interface.html#FT_Size_Metrics">FT_Size_Metrics</a>   metrics;   /* size metrics                    */
1262     <a href="ft2-base_interface.html#FT_Size_Internal">FT_Size_Internal</a>  internal;
1263
1264   } <b>FT_SizeRec</b>;
1265
1266 </pre></table><br>
1267 <table align=center width="87%"><tr><td>
1268 <p>FreeType root size class structure. A size object models a face object at a given size.</p>
1269 </td></tr></table><br>
1270 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>fields</b></em></td></tr><tr><td>
1271 <p></p>
1272 <table cellpadding=3 border=0>
1273 <tr valign=top><td><b>face</b></td><td>
1274 <p>Handle to the parent face object.</p>
1275 </td></tr>
1276 <tr valign=top><td><b>generic</b></td><td>
1277 <p>A typeless pointer, which is unused by the FreeType library or any of its drivers. It can be used by client applications to link their own data to each size object.</p>
1278 </td></tr>
1279 <tr valign=top><td><b>metrics</b></td><td>
1280 <p>Metrics for this size object. This field is read-only.</p>
1281 </td></tr>
1282 </table>
1283 </td></tr></table>
1284 </td></tr></table>
1285 <hr width="75%">
1286 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1287 <td width="100%"></td>
1288 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1289
1290 <table align=center width="75%"><tr><td>
1291 <h4><a name="FT_SubGlyph">FT_SubGlyph</a></h4>
1292 <table align=center width="87%"><tr><td>
1293 Defined in FT_FREETYPE_H (freetype/freetype.h).
1294 </td></tr></table><br>
1295 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1296
1297   <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_SubGlyphRec_*  <b>FT_SubGlyph</b>;
1298
1299 </pre></table><br>
1300 <table align=center width="87%"><tr><td>
1301 <p>The subglyph structure is an internal object used to describe subglyphs (for example, in the case of composites).</p>
1302 </td></tr></table><br>
1303 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
1304 <p>The subglyph implementation is not part of the high-level API, hence the forward structure declaration.</p>
1305 <p>You can however retrieve subglyph information with <a href="ft2-base_interface.html#FT_Get_SubGlyph_Info">FT_Get_SubGlyph_Info</a>.</p>
1306 </td></tr></table>
1307 </td></tr></table>
1308 <hr width="75%">
1309 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1310 <td width="100%"></td>
1311 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1312
1313 <table align=center width="75%"><tr><td>
1314 <h4><a name="FT_Slot_Internal">FT_Slot_Internal</a></h4>
1315 <table align=center width="87%"><tr><td>
1316 Defined in FT_FREETYPE_H (freetype/freetype.h).
1317 </td></tr></table><br>
1318 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1319
1320   <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_Slot_InternalRec_*  <b>FT_Slot_Internal</b>;
1321
1322 </pre></table><br>
1323 <table align=center width="87%"><tr><td>
1324 <p>An opaque handle to an &lsquo;FT_Slot_InternalRec&rsquo; structure, used to model private data of a given <a href="ft2-base_interface.html#FT_GlyphSlot">FT_GlyphSlot</a> object.</p>
1325 </td></tr></table><br>
1326 </td></tr></table>
1327 <hr width="75%">
1328 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1329 <td width="100%"></td>
1330 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1331
1332 <table align=center width="75%"><tr><td>
1333 <h4><a name="FT_GlyphSlotRec">FT_GlyphSlotRec</a></h4>
1334 <table align=center width="87%"><tr><td>
1335 Defined in FT_FREETYPE_H (freetype/freetype.h).
1336 </td></tr></table><br>
1337 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1338
1339   <span class="keyword">typedef</span> <span class="keyword">struct</span>  FT_GlyphSlotRec_
1340   {
1341     <a href="ft2-base_interface.html#FT_Library">FT_Library</a>        library;
1342     <a href="ft2-base_interface.html#FT_Face">FT_Face</a>           face;
1343     <a href="ft2-base_interface.html#FT_GlyphSlot">FT_GlyphSlot</a>      next;
1344     <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>           reserved;       /* retained for binary compatibility */
1345     <a href="ft2-basic_types.html#FT_Generic">FT_Generic</a>        generic;
1346
1347     <a href="ft2-base_interface.html#FT_Glyph_Metrics">FT_Glyph_Metrics</a>  metrics;
1348     <a href="ft2-basic_types.html#FT_Fixed">FT_Fixed</a>          linearHoriAdvance;
1349     <a href="ft2-basic_types.html#FT_Fixed">FT_Fixed</a>          linearVertAdvance;
1350     <a href="ft2-basic_types.html#FT_Vector">FT_Vector</a>         advance;
1351
1352     <a href="ft2-basic_types.html#FT_Glyph_Format">FT_Glyph_Format</a>   format;
1353
1354     <a href="ft2-basic_types.html#FT_Bitmap">FT_Bitmap</a>         bitmap;
1355     <a href="ft2-basic_types.html#FT_Int">FT_Int</a>            bitmap_left;
1356     <a href="ft2-basic_types.html#FT_Int">FT_Int</a>            bitmap_top;
1357
1358     <a href="ft2-outline_processing.html#FT_Outline">FT_Outline</a>        outline;
1359
1360     <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>           num_subglyphs;
1361     <a href="ft2-base_interface.html#FT_SubGlyph">FT_SubGlyph</a>       subglyphs;
1362
1363     <span class="keyword">void</span>*             control_data;
1364     <span class="keyword">long</span>              control_len;
1365
1366     <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a>            lsb_delta;
1367     <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a>            rsb_delta;
1368
1369     <span class="keyword">void</span>*             other;
1370
1371     <a href="ft2-base_interface.html#FT_Slot_Internal">FT_Slot_Internal</a>  internal;
1372
1373   } <b>FT_GlyphSlotRec</b>;
1374
1375 </pre></table><br>
1376 <table align=center width="87%"><tr><td>
1377 <p>FreeType root glyph slot class structure. A glyph slot is a container where individual glyphs can be loaded, be they in outline or bitmap format.</p>
1378 </td></tr></table><br>
1379 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>fields</b></em></td></tr><tr><td>
1380 <p></p>
1381 <table cellpadding=3 border=0>
1382 <tr valign=top><td><b>library</b></td><td>
1383 <p>A handle to the FreeType library instance this slot belongs to.</p>
1384 </td></tr>
1385 <tr valign=top><td><b>face</b></td><td>
1386 <p>A handle to the parent face object.</p>
1387 </td></tr>
1388 <tr valign=top><td><b>next</b></td><td>
1389 <p>In some cases (like some font tools), several glyph slots per face object can be a good thing. As this is rare, the glyph slots are listed through a direct, single-linked list using its &lsquo;next&rsquo; field.</p>
1390 </td></tr>
1391 <tr valign=top><td><b>generic</b></td><td>
1392 <p>A typeless pointer which is unused by the FreeType library or any of its drivers. It can be used by client applications to link their own data to each glyph slot object.</p>
1393 </td></tr>
1394 <tr valign=top><td><b>metrics</b></td><td>
1395 <p>The metrics of the last loaded glyph in the slot. The returned values depend on the last load flags (see the <a href="ft2-base_interface.html#FT_Load_Glyph">FT_Load_Glyph</a> API function) and can be expressed either in 26.6 fractional pixels or font units.</p>
1396 <p>Note that even when the glyph image is transformed, the metrics are not.</p>
1397 </td></tr>
1398 <tr valign=top><td><b>linearHoriAdvance</b></td><td>
1399 <p>The advance width of the unhinted glyph. Its value is expressed in 16.16 fractional pixels, unless <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_LINEAR_DESIGN</a> is set when loading the glyph. This field can be important to perform correct WYSIWYG layout. Only relevant for outline glyphs.</p>
1400 </td></tr>
1401 <tr valign=top><td><b>linearVertAdvance</b></td><td>
1402 <p>The advance height of the unhinted glyph. Its value is expressed in 16.16 fractional pixels, unless <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_LINEAR_DESIGN</a> is set when loading the glyph. This field can be important to perform correct WYSIWYG layout. Only relevant for outline glyphs.</p>
1403 </td></tr>
1404 <tr valign=top><td><b>advance</b></td><td>
1405 <p>This shorthand is, depending on <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_IGNORE_TRANSFORM</a>, the transformed advance width for the glyph (in 26.6 fractional pixel format). As specified with <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_VERTICAL_LAYOUT</a>, it uses either the &lsquo;horiAdvance&rsquo; or the &lsquo;vertAdvance&rsquo; value of &lsquo;metrics&rsquo; field.</p>
1406 </td></tr>
1407 <tr valign=top><td><b>format</b></td><td>
1408 <p>This field indicates the format of the image contained in the glyph slot. Typically <a href="ft2-basic_types.html#FT_Glyph_Format">FT_GLYPH_FORMAT_BITMAP</a>, <a href="ft2-basic_types.html#FT_Glyph_Format">FT_GLYPH_FORMAT_OUTLINE</a>, or <a href="ft2-basic_types.html#FT_Glyph_Format">FT_GLYPH_FORMAT_COMPOSITE</a>, but others are possible.</p>
1409 </td></tr>
1410 <tr valign=top><td><b>bitmap</b></td><td>
1411 <p>This field is used as a bitmap descriptor when the slot format is <a href="ft2-basic_types.html#FT_Glyph_Format">FT_GLYPH_FORMAT_BITMAP</a>. Note that the address and content of the bitmap buffer can change between calls of <a href="ft2-base_interface.html#FT_Load_Glyph">FT_Load_Glyph</a> and a few other functions.</p>
1412 </td></tr>
1413 <tr valign=top><td><b>bitmap_left</b></td><td>
1414 <p>This is the bitmap's left bearing expressed in integer pixels. Of course, this is only valid if the format is <a href="ft2-basic_types.html#FT_Glyph_Format">FT_GLYPH_FORMAT_BITMAP</a>.</p>
1415 </td></tr>
1416 <tr valign=top><td><b>bitmap_top</b></td><td>
1417 <p>This is the bitmap's top bearing expressed in integer pixels. Remember that this is the distance from the baseline to the top-most glyph scanline, upwards y&nbsp;coordinates being <b>positive</b>.</p>
1418 </td></tr>
1419 <tr valign=top><td><b>outline</b></td><td>
1420 <p>The outline descriptor for the current glyph image if its format is <a href="ft2-basic_types.html#FT_Glyph_Format">FT_GLYPH_FORMAT_OUTLINE</a>. Once a glyph is loaded, &lsquo;outline&rsquo; can be transformed, distorted, embolded, etc. However, it must not be freed.</p>
1421 </td></tr>
1422 <tr valign=top><td><b>num_subglyphs</b></td><td>
1423 <p>The number of subglyphs in a composite glyph. This field is only valid for the composite glyph format that should normally only be loaded with the <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_RECURSE</a> flag. For now this is internal to FreeType.</p>
1424 </td></tr>
1425 <tr valign=top><td><b>subglyphs</b></td><td>
1426 <p>An array of subglyph descriptors for composite glyphs. There are &lsquo;num_subglyphs&rsquo; elements in there. Currently internal to FreeType.</p>
1427 </td></tr>
1428 <tr valign=top><td><b>control_data</b></td><td>
1429 <p>Certain font drivers can also return the control data for a given glyph image (e.g. TrueType bytecode, Type&nbsp;1 charstrings, etc.). This field is a pointer to such data.</p>
1430 </td></tr>
1431 <tr valign=top><td><b>control_len</b></td><td>
1432 <p>This is the length in bytes of the control data.</p>
1433 </td></tr>
1434 <tr valign=top><td><b>other</b></td><td>
1435 <p>Really wicked formats can use this pointer to present their own glyph image to client applications. Note that the application needs to know about the image format.</p>
1436 </td></tr>
1437 <tr valign=top><td><b>lsb_delta</b></td><td>
1438 <p>The difference between hinted and unhinted left side bearing while autohinting is active. Zero otherwise.</p>
1439 </td></tr>
1440 <tr valign=top><td><b>rsb_delta</b></td><td>
1441 <p>The difference between hinted and unhinted right side bearing while autohinting is active. Zero otherwise.</p>
1442 </td></tr>
1443 </table>
1444 </td></tr></table>
1445 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
1446 <p>If <a href="ft2-base_interface.html#FT_Load_Glyph">FT_Load_Glyph</a> is called with default flags (see <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_DEFAULT</a>) the glyph image is loaded in the glyph slot in its native format (e.g., an outline glyph for TrueType and Type&nbsp;1 formats).</p>
1447 <p>This image can later be converted into a bitmap by calling <a href="ft2-base_interface.html#FT_Render_Glyph">FT_Render_Glyph</a>. This function finds the current renderer for the native image's format, then invokes it.</p>
1448 <p>The renderer is in charge of transforming the native image through the slot's face transformation fields, then converting it into a bitmap that is returned in &lsquo;slot-&gt;bitmap&rsquo;.</p>
1449 <p>Note that &lsquo;slot-&gt;bitmap_left&rsquo; and &lsquo;slot-&gt;bitmap_top&rsquo; are also used to specify the position of the bitmap relative to the current pen position (e.g., coordinates (0,0) on the baseline). Of course, &lsquo;slot-&gt;format&rsquo; is also changed to <a href="ft2-basic_types.html#FT_Glyph_Format">FT_GLYPH_FORMAT_BITMAP</a>.</p>
1450 </td></tr></table>
1451 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
1452 <p>Here a small pseudo code fragment which shows how to use &lsquo;lsb_delta&rsquo; and &lsquo;rsb_delta&rsquo;:</p>
1453 <pre class="colored">
1454   FT_Pos  origin_x       = 0;                                      
1455   FT_Pos  prev_rsb_delta = 0;                                      
1456                                                                    
1457                                                                    
1458   for all glyphs do                                                
1459     &lt;compute kern between current and previous glyph and add it to 
1460      `origin_x'&gt;                                                   
1461                                                                    
1462     &lt;load glyph with `FT_Load_Glyph'&gt;                              
1463                                                                    
1464     if ( prev_rsb_delta - face-&gt;glyph-&gt;lsb_delta &gt;= 32 )           
1465       origin_x -= 64;                                              
1466     else if ( prev_rsb_delta - face-&gt;glyph-&gt;lsb_delta &lt; -32 )      
1467       origin_x += 64;                                              
1468                                                                    
1469     prev_rsb_delta = face-&gt;glyph-&gt;rsb_delta;                       
1470                                                                    
1471     &lt;save glyph image, or render glyph, or ...&gt;                    
1472                                                                    
1473     origin_x += face-&gt;glyph-&gt;advance.x;                            
1474   endfor                                                           
1475 </pre>
1476 </td></tr></table>
1477 </td></tr></table>
1478 <hr width="75%">
1479 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1480 <td width="100%"></td>
1481 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1482
1483 <table align=center width="75%"><tr><td>
1484 <h4><a name="FT_Init_FreeType">FT_Init_FreeType</a></h4>
1485 <table align=center width="87%"><tr><td>
1486 Defined in FT_FREETYPE_H (freetype/freetype.h).
1487 </td></tr></table><br>
1488 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1489
1490   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
1491   <b>FT_Init_FreeType</b>( <a href="ft2-base_interface.html#FT_Library">FT_Library</a>  *alibrary );
1492
1493 </pre></table><br>
1494 <table align=center width="87%"><tr><td>
1495 <p>Initialize a new FreeType library object. The set of modules that are registered by this function is determined at build time.</p>
1496 </td></tr></table><br>
1497 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
1498 <p></p>
1499 <table cellpadding=3 border=0>
1500 <tr valign=top><td><b>alibrary</b></td><td>
1501 <p>A handle to a new library object.</p>
1502 </td></tr>
1503 </table>
1504 </td></tr></table>
1505 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
1506 <p>FreeType error code. 0&nbsp;means success.</p>
1507 </td></tr></table>
1508 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
1509 <p>In case you want to provide your own memory allocating routines, use <a href="ft2-module_management.html#FT_New_Library">FT_New_Library</a> instead, 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>).</p>
1510 <p>For multi-threading applications each thread should have its own FT_Library object.</p>
1511 </td></tr></table>
1512 </td></tr></table>
1513 <hr width="75%">
1514 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1515 <td width="100%"></td>
1516 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1517
1518 <table align=center width="75%"><tr><td>
1519 <h4><a name="FT_Done_FreeType">FT_Done_FreeType</a></h4>
1520 <table align=center width="87%"><tr><td>
1521 Defined in FT_FREETYPE_H (freetype/freetype.h).
1522 </td></tr></table><br>
1523 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1524
1525   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
1526   <b>FT_Done_FreeType</b>( <a href="ft2-base_interface.html#FT_Library">FT_Library</a>  library );
1527
1528 </pre></table><br>
1529 <table align=center width="87%"><tr><td>
1530 <p>Destroy a given FreeType library object and all of its children, including resources, drivers, faces, sizes, etc.</p>
1531 </td></tr></table><br>
1532 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
1533 <p></p>
1534 <table cellpadding=3 border=0>
1535 <tr valign=top><td><b>library</b></td><td>
1536 <p>A handle to the target library object.</p>
1537 </td></tr>
1538 </table>
1539 </td></tr></table>
1540 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
1541 <p>FreeType error code. 0&nbsp;means success.</p>
1542 </td></tr></table>
1543 </td></tr></table>
1544 <hr width="75%">
1545 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1546 <td width="100%"></td>
1547 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1548
1549 <table align=center width="75%"><tr><td>
1550 <h4><a name="FT_OPEN_XXX">FT_OPEN_XXX</a></h4>
1551 <table align=center width="87%"><tr><td>
1552 Defined in FT_FREETYPE_H (freetype/freetype.h).
1553 </td></tr></table><br>
1554 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1555
1556 #define <a href="ft2-base_interface.html#FT_OPEN_XXX">FT_OPEN_MEMORY</a>    0x1
1557 #define <a href="ft2-base_interface.html#FT_OPEN_XXX">FT_OPEN_STREAM</a>    0x2
1558 #define <a href="ft2-base_interface.html#FT_OPEN_XXX">FT_OPEN_PATHNAME</a>  0x4
1559 #define <a href="ft2-base_interface.html#FT_OPEN_XXX">FT_OPEN_DRIVER</a>    0x8
1560 #define <a href="ft2-base_interface.html#FT_OPEN_XXX">FT_OPEN_PARAMS</a>    0x10
1561
1562 #define <a href="ft2-base_interface.html#FT_OPEN_XXX">ft_open_memory</a>    <a href="ft2-base_interface.html#FT_OPEN_XXX">FT_OPEN_MEMORY</a>     /* deprecated */
1563 #define <a href="ft2-base_interface.html#FT_OPEN_XXX">ft_open_stream</a>    <a href="ft2-base_interface.html#FT_OPEN_XXX">FT_OPEN_STREAM</a>     /* deprecated */
1564 #define <a href="ft2-base_interface.html#FT_OPEN_XXX">ft_open_pathname</a>  <a href="ft2-base_interface.html#FT_OPEN_XXX">FT_OPEN_PATHNAME</a>   /* deprecated */
1565 #define <a href="ft2-base_interface.html#FT_OPEN_XXX">ft_open_driver</a>    <a href="ft2-base_interface.html#FT_OPEN_XXX">FT_OPEN_DRIVER</a>     /* deprecated */
1566 #define <a href="ft2-base_interface.html#FT_OPEN_XXX">ft_open_params</a>    <a href="ft2-base_interface.html#FT_OPEN_XXX">FT_OPEN_PARAMS</a>     /* deprecated */
1567
1568 </pre></table><br>
1569 <table align=center width="87%"><tr><td>
1570 <p>A list of bit-field constants used within the &lsquo;flags&rsquo; field of the <a href="ft2-base_interface.html#FT_Open_Args">FT_Open_Args</a> structure.</p>
1571 </td></tr></table><br>
1572 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td>
1573 <p></p>
1574 <table cellpadding=3 border=0>
1575 <tr valign=top><td><b>FT_OPEN_MEMORY</b></td><td>
1576 <p>This is a memory-based stream.</p>
1577 </td></tr>
1578 <tr valign=top><td><b>FT_OPEN_STREAM</b></td><td>
1579 <p>Copy the stream from the &lsquo;stream&rsquo; field.</p>
1580 </td></tr>
1581 <tr valign=top><td><b>FT_OPEN_PATHNAME</b></td><td>
1582 <p>Create a new input stream from a C&nbsp;path name.</p>
1583 </td></tr>
1584 <tr valign=top><td><b>FT_OPEN_DRIVER</b></td><td>
1585 <p>Use the &lsquo;driver&rsquo; field.</p>
1586 </td></tr>
1587 <tr valign=top><td><b>FT_OPEN_PARAMS</b></td><td>
1588 <p>Use the &lsquo;num_params&rsquo; and &lsquo;params&rsquo; fields.</p>
1589 </td></tr>
1590 <tr valign=top><td><b>ft_open_memory</b></td><td>
1591 <p>Deprecated; use <a href="ft2-base_interface.html#FT_OPEN_XXX">FT_OPEN_MEMORY</a> instead.</p>
1592 </td></tr>
1593 <tr valign=top><td><b>ft_open_stream</b></td><td>
1594 <p>Deprecated; use <a href="ft2-base_interface.html#FT_OPEN_XXX">FT_OPEN_STREAM</a> instead.</p>
1595 </td></tr>
1596 <tr valign=top><td><b>ft_open_pathname</b></td><td>
1597 <p>Deprecated; use <a href="ft2-base_interface.html#FT_OPEN_XXX">FT_OPEN_PATHNAME</a> instead.</p>
1598 </td></tr>
1599 <tr valign=top><td><b>ft_open_driver</b></td><td>
1600 <p>Deprecated; use <a href="ft2-base_interface.html#FT_OPEN_XXX">FT_OPEN_DRIVER</a> instead.</p>
1601 </td></tr>
1602 <tr valign=top><td><b>ft_open_params</b></td><td>
1603 <p>Deprecated; use <a href="ft2-base_interface.html#FT_OPEN_XXX">FT_OPEN_PARAMS</a> instead.</p>
1604 </td></tr>
1605 </table>
1606 </td></tr></table>
1607 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
1608 <p>The &lsquo;FT_OPEN_MEMORY&rsquo;, &lsquo;FT_OPEN_STREAM&rsquo;, and &lsquo;FT_OPEN_PATHNAME&rsquo; flags are mutually exclusive.</p>
1609 </td></tr></table>
1610 </td></tr></table>
1611 <hr width="75%">
1612 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1613 <td width="100%"></td>
1614 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1615
1616 <table align=center width="75%"><tr><td>
1617 <h4><a name="FT_Parameter">FT_Parameter</a></h4>
1618 <table align=center width="87%"><tr><td>
1619 Defined in FT_FREETYPE_H (freetype/freetype.h).
1620 </td></tr></table><br>
1621 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1622
1623   <span class="keyword">typedef</span> <span class="keyword">struct</span>  FT_Parameter_
1624   {
1625     <a href="ft2-basic_types.html#FT_ULong">FT_ULong</a>    tag;
1626     <a href="ft2-basic_types.html#FT_Pointer">FT_Pointer</a>  data;
1627
1628   } <b>FT_Parameter</b>;
1629
1630 </pre></table><br>
1631 <table align=center width="87%"><tr><td>
1632 <p>A simple structure used to pass more or less generic parameters to <a href="ft2-base_interface.html#FT_Open_Face">FT_Open_Face</a>.</p>
1633 </td></tr></table><br>
1634 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>fields</b></em></td></tr><tr><td>
1635 <p></p>
1636 <table cellpadding=3 border=0>
1637 <tr valign=top><td><b>tag</b></td><td>
1638 <p>A four-byte identification tag.</p>
1639 </td></tr>
1640 <tr valign=top><td><b>data</b></td><td>
1641 <p>A pointer to the parameter data.</p>
1642 </td></tr>
1643 </table>
1644 </td></tr></table>
1645 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
1646 <p>The ID and function of parameters are driver-specific. See the various FT_PARAM_TAG_XXX flags for more information.</p>
1647 </td></tr></table>
1648 </td></tr></table>
1649 <hr width="75%">
1650 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1651 <td width="100%"></td>
1652 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1653
1654 <table align=center width="75%"><tr><td>
1655 <h4><a name="FT_Open_Args">FT_Open_Args</a></h4>
1656 <table align=center width="87%"><tr><td>
1657 Defined in FT_FREETYPE_H (freetype/freetype.h).
1658 </td></tr></table><br>
1659 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1660
1661   <span class="keyword">typedef</span> <span class="keyword">struct</span>  FT_Open_Args_
1662   {
1663     <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>         flags;
1664     <span class="keyword">const</span> <a href="ft2-basic_types.html#FT_Byte">FT_Byte</a>*  memory_base;
1665     <a href="ft2-basic_types.html#FT_Long">FT_Long</a>         memory_size;
1666     <a href="ft2-basic_types.html#FT_String">FT_String</a>*      pathname;
1667     <a href="ft2-system_interface.html#FT_Stream">FT_Stream</a>       stream;
1668     <a href="ft2-base_interface.html#FT_Module">FT_Module</a>       driver;
1669     <a href="ft2-basic_types.html#FT_Int">FT_Int</a>          num_params;
1670     <a href="ft2-base_interface.html#FT_Parameter">FT_Parameter</a>*   params;
1671
1672   } <b>FT_Open_Args</b>;
1673
1674 </pre></table><br>
1675 <table align=center width="87%"><tr><td>
1676 <p>A structure used to indicate how to open a new font file or stream. A pointer to such a structure can be used as a parameter for the functions <a href="ft2-base_interface.html#FT_Open_Face">FT_Open_Face</a> and <a href="ft2-base_interface.html#FT_Attach_Stream">FT_Attach_Stream</a>.</p>
1677 </td></tr></table><br>
1678 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>fields</b></em></td></tr><tr><td>
1679 <p></p>
1680 <table cellpadding=3 border=0>
1681 <tr valign=top><td><b>flags</b></td><td>
1682 <p>A set of bit flags indicating how to use the structure.</p>
1683 </td></tr>
1684 <tr valign=top><td><b>memory_base</b></td><td>
1685 <p>The first byte of the file in memory.</p>
1686 </td></tr>
1687 <tr valign=top><td><b>memory_size</b></td><td>
1688 <p>The size in bytes of the file in memory.</p>
1689 </td></tr>
1690 <tr valign=top><td><b>pathname</b></td><td>
1691 <p>A pointer to an 8-bit file pathname.</p>
1692 </td></tr>
1693 <tr valign=top><td><b>stream</b></td><td>
1694 <p>A handle to a source stream object.</p>
1695 </td></tr>
1696 <tr valign=top><td><b>driver</b></td><td>
1697 <p>This field is exclusively used by <a href="ft2-base_interface.html#FT_Open_Face">FT_Open_Face</a>; it simply specifies the font driver to use to open the face. If set to&nbsp;0, FreeType tries to load the face with each one of the drivers in its list.</p>
1698 </td></tr>
1699 <tr valign=top><td><b>num_params</b></td><td>
1700 <p>The number of extra parameters.</p>
1701 </td></tr>
1702 <tr valign=top><td><b>params</b></td><td>
1703 <p>Extra parameters passed to the font driver when opening a new face.</p>
1704 </td></tr>
1705 </table>
1706 </td></tr></table>
1707 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
1708 <p>The stream type is determined by the contents of &lsquo;flags&rsquo; which are tested in the following order by <a href="ft2-base_interface.html#FT_Open_Face">FT_Open_Face</a>:</p>
1709 <p>If the &lsquo;FT_OPEN_MEMORY&rsquo; bit is set, assume that this is a memory file of &lsquo;memory_size&rsquo; bytes, located at &lsquo;memory_address&rsquo;. The data are are not copied, and the client is responsible for releasing and destroying them <i>after</i> the corresponding call to <a href="ft2-base_interface.html#FT_Done_Face">FT_Done_Face</a>.</p>
1710 <p>Otherwise, if the &lsquo;FT_OPEN_STREAM&rsquo; bit is set, assume that a custom input stream &lsquo;stream&rsquo; is used.</p>
1711 <p>Otherwise, if the &lsquo;FT_OPEN_PATHNAME&rsquo; bit is set, assume that this is a normal file and use &lsquo;pathname&rsquo; to open it.</p>
1712 <p>If the &lsquo;FT_OPEN_DRIVER&rsquo; bit is set, <a href="ft2-base_interface.html#FT_Open_Face">FT_Open_Face</a> only tries to open the file with the driver whose handler is in &lsquo;driver&rsquo;.</p>
1713 <p>If the &lsquo;FT_OPEN_PARAMS&rsquo; bit is set, the parameters given by &lsquo;num_params&rsquo; and &lsquo;params&rsquo; is used. They are ignored otherwise.</p>
1714 <p>Ideally, both the &lsquo;pathname&rsquo; and &lsquo;params&rsquo; fields should be tagged as &lsquo;const&rsquo;; this is missing for API backwards compatibility. In other words, applications should treat them as read-only.</p>
1715 </td></tr></table>
1716 </td></tr></table>
1717 <hr width="75%">
1718 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1719 <td width="100%"></td>
1720 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1721
1722 <table align=center width="75%"><tr><td>
1723 <h4><a name="FT_New_Face">FT_New_Face</a></h4>
1724 <table align=center width="87%"><tr><td>
1725 Defined in FT_FREETYPE_H (freetype/freetype.h).
1726 </td></tr></table><br>
1727 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1728
1729   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
1730   <b>FT_New_Face</b>( <a href="ft2-base_interface.html#FT_Library">FT_Library</a>   library,
1731                <span class="keyword">const</span> <span class="keyword">char</span>*  filepathname,
1732                <a href="ft2-basic_types.html#FT_Long">FT_Long</a>      face_index,
1733                <a href="ft2-base_interface.html#FT_Face">FT_Face</a>     *aface );
1734
1735 </pre></table><br>
1736 <table align=center width="87%"><tr><td>
1737 <p>This function calls <a href="ft2-base_interface.html#FT_Open_Face">FT_Open_Face</a> to open a font by its pathname.</p>
1738 </td></tr></table><br>
1739 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
1740 <p></p>
1741 <table cellpadding=3 border=0>
1742 <tr valign=top><td><b>library</b></td><td>
1743 <p>A handle to the library resource.</p>
1744 </td></tr>
1745 </table>
1746 </td></tr></table>
1747 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
1748 <p></p>
1749 <table cellpadding=3 border=0>
1750 <tr valign=top><td><b>pathname</b></td><td>
1751 <p>A path to the font file.</p>
1752 </td></tr>
1753 <tr valign=top><td><b>face_index</b></td><td>
1754 <p>The index of the face within the font. The first face has index&nbsp;0.</p>
1755 </td></tr>
1756 </table>
1757 </td></tr></table>
1758 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
1759 <p></p>
1760 <table cellpadding=3 border=0>
1761 <tr valign=top><td><b>aface</b></td><td>
1762 <p>A handle to a new face object. If &lsquo;face_index&rsquo; is greater than or equal to zero, it must be non-NULL. See <a href="ft2-base_interface.html#FT_Open_Face">FT_Open_Face</a> for more details.</p>
1763 </td></tr>
1764 </table>
1765 </td></tr></table>
1766 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
1767 <p>FreeType error code. 0&nbsp;means success.</p>
1768 </td></tr></table>
1769 </td></tr></table>
1770 <hr width="75%">
1771 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1772 <td width="100%"></td>
1773 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1774
1775 <table align=center width="75%"><tr><td>
1776 <h4><a name="FT_New_Memory_Face">FT_New_Memory_Face</a></h4>
1777 <table align=center width="87%"><tr><td>
1778 Defined in FT_FREETYPE_H (freetype/freetype.h).
1779 </td></tr></table><br>
1780 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1781
1782   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
1783   <b>FT_New_Memory_Face</b>( <a href="ft2-base_interface.html#FT_Library">FT_Library</a>      library,
1784                       <span class="keyword">const</span> <a href="ft2-basic_types.html#FT_Byte">FT_Byte</a>*  file_base,
1785                       <a href="ft2-basic_types.html#FT_Long">FT_Long</a>         file_size,
1786                       <a href="ft2-basic_types.html#FT_Long">FT_Long</a>         face_index,
1787                       <a href="ft2-base_interface.html#FT_Face">FT_Face</a>        *aface );
1788
1789 </pre></table><br>
1790 <table align=center width="87%"><tr><td>
1791 <p>This function calls <a href="ft2-base_interface.html#FT_Open_Face">FT_Open_Face</a> to open a font which has been loaded into memory.</p>
1792 </td></tr></table><br>
1793 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
1794 <p></p>
1795 <table cellpadding=3 border=0>
1796 <tr valign=top><td><b>library</b></td><td>
1797 <p>A handle to the library resource.</p>
1798 </td></tr>
1799 </table>
1800 </td></tr></table>
1801 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
1802 <p></p>
1803 <table cellpadding=3 border=0>
1804 <tr valign=top><td><b>file_base</b></td><td>
1805 <p>A pointer to the beginning of the font data.</p>
1806 </td></tr>
1807 <tr valign=top><td><b>file_size</b></td><td>
1808 <p>The size of the memory chunk used by the font data.</p>
1809 </td></tr>
1810 <tr valign=top><td><b>face_index</b></td><td>
1811 <p>The index of the face within the font. The first face has index&nbsp;0.</p>
1812 </td></tr>
1813 </table>
1814 </td></tr></table>
1815 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
1816 <p></p>
1817 <table cellpadding=3 border=0>
1818 <tr valign=top><td><b>aface</b></td><td>
1819 <p>A handle to a new face object. If &lsquo;face_index&rsquo; is greater than or equal to zero, it must be non-NULL. See <a href="ft2-base_interface.html#FT_Open_Face">FT_Open_Face</a> for more details.</p>
1820 </td></tr>
1821 </table>
1822 </td></tr></table>
1823 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
1824 <p>FreeType error code. 0&nbsp;means success.</p>
1825 </td></tr></table>
1826 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
1827 <p>You must not deallocate the memory before calling <a href="ft2-base_interface.html#FT_Done_Face">FT_Done_Face</a>.</p>
1828 </td></tr></table>
1829 </td></tr></table>
1830 <hr width="75%">
1831 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1832 <td width="100%"></td>
1833 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1834
1835 <table align=center width="75%"><tr><td>
1836 <h4><a name="FT_Open_Face">FT_Open_Face</a></h4>
1837 <table align=center width="87%"><tr><td>
1838 Defined in FT_FREETYPE_H (freetype/freetype.h).
1839 </td></tr></table><br>
1840 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1841
1842   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
1843   <b>FT_Open_Face</b>( <a href="ft2-base_interface.html#FT_Library">FT_Library</a>           library,
1844                 <span class="keyword">const</span> <a href="ft2-base_interface.html#FT_Open_Args">FT_Open_Args</a>*  args,
1845                 <a href="ft2-basic_types.html#FT_Long">FT_Long</a>              face_index,
1846                 <a href="ft2-base_interface.html#FT_Face">FT_Face</a>             *aface );
1847
1848 </pre></table><br>
1849 <table align=center width="87%"><tr><td>
1850 <p>Create a face object from a given resource described by <a href="ft2-base_interface.html#FT_Open_Args">FT_Open_Args</a>.</p>
1851 </td></tr></table><br>
1852 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
1853 <p></p>
1854 <table cellpadding=3 border=0>
1855 <tr valign=top><td><b>library</b></td><td>
1856 <p>A handle to the library resource.</p>
1857 </td></tr>
1858 </table>
1859 </td></tr></table>
1860 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
1861 <p></p>
1862 <table cellpadding=3 border=0>
1863 <tr valign=top><td><b>args</b></td><td>
1864 <p>A pointer to an &lsquo;FT_Open_Args&rsquo; structure which must be filled by the caller.</p>
1865 </td></tr>
1866 <tr valign=top><td><b>face_index</b></td><td>
1867 <p>The index of the face within the font. The first face has index&nbsp;0.</p>
1868 </td></tr>
1869 </table>
1870 </td></tr></table>
1871 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
1872 <p></p>
1873 <table cellpadding=3 border=0>
1874 <tr valign=top><td><b>aface</b></td><td>
1875 <p>A handle to a new face object. If &lsquo;face_index&rsquo; is greater than or equal to zero, it must be non-NULL. See note below.</p>
1876 </td></tr>
1877 </table>
1878 </td></tr></table>
1879 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
1880 <p>FreeType error code. 0&nbsp;means success.</p>
1881 </td></tr></table>
1882 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
1883 <p>Unlike FreeType 1.x, this function automatically creates a glyph slot for the face object which can be accessed directly through &lsquo;face-&gt;glyph&rsquo;.</p>
1884 <p>FT_Open_Face can be used to quickly check whether the font format of a given font resource is supported by FreeType. If the &lsquo;face_index&rsquo; field is negative, the function's return value is&nbsp;0 if the font format is recognized, or non-zero otherwise; the function returns a more or less empty face handle in &lsquo;*aface&rsquo; (if &lsquo;aface&rsquo; isn't NULL). The only useful field in this special case is &lsquo;face-&gt;num_faces&rsquo; which gives the number of faces within the font file. After examination, the returned <a href="ft2-base_interface.html#FT_Face">FT_Face</a> structure should be deallocated with a call to <a href="ft2-base_interface.html#FT_Done_Face">FT_Done_Face</a>.</p>
1885 <p>Each new face object created with this function also owns a default <a href="ft2-base_interface.html#FT_Size">FT_Size</a> object, accessible as &lsquo;face-&gt;size&rsquo;.</p>
1886 <p>One <a href="ft2-base_interface.html#FT_Library">FT_Library</a> instance can have multiple face objects, this is, <a href="ft2-base_interface.html#FT_Open_Face">FT_Open_Face</a> and its siblings can be called multiple times using the same &lsquo;library&rsquo; argument.</p>
1887 <p>See the discussion of reference counters in the description of <a href="ft2-base_interface.html#FT_Reference_Face">FT_Reference_Face</a>.</p>
1888 </td></tr></table>
1889 </td></tr></table>
1890 <hr width="75%">
1891 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1892 <td width="100%"></td>
1893 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1894
1895 <table align=center width="75%"><tr><td>
1896 <h4><a name="FT_Attach_File">FT_Attach_File</a></h4>
1897 <table align=center width="87%"><tr><td>
1898 Defined in FT_FREETYPE_H (freetype/freetype.h).
1899 </td></tr></table><br>
1900 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1901
1902   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
1903   <b>FT_Attach_File</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>      face,
1904                   <span class="keyword">const</span> <span class="keyword">char</span>*  filepathname );
1905
1906 </pre></table><br>
1907 <table align=center width="87%"><tr><td>
1908 <p>This function calls <a href="ft2-base_interface.html#FT_Attach_Stream">FT_Attach_Stream</a> to attach a file.</p>
1909 </td></tr></table><br>
1910 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
1911 <p></p>
1912 <table cellpadding=3 border=0>
1913 <tr valign=top><td><b>face</b></td><td>
1914 <p>The target face object.</p>
1915 </td></tr>
1916 </table>
1917 </td></tr></table>
1918 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
1919 <p></p>
1920 <table cellpadding=3 border=0>
1921 <tr valign=top><td><b>filepathname</b></td><td>
1922 <p>The pathname.</p>
1923 </td></tr>
1924 </table>
1925 </td></tr></table>
1926 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
1927 <p>FreeType error code. 0&nbsp;means success.</p>
1928 </td></tr></table>
1929 </td></tr></table>
1930 <hr width="75%">
1931 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1932 <td width="100%"></td>
1933 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1934
1935 <table align=center width="75%"><tr><td>
1936 <h4><a name="FT_Attach_Stream">FT_Attach_Stream</a></h4>
1937 <table align=center width="87%"><tr><td>
1938 Defined in FT_FREETYPE_H (freetype/freetype.h).
1939 </td></tr></table><br>
1940 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1941
1942   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
1943   <b>FT_Attach_Stream</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>        face,
1944                     <a href="ft2-base_interface.html#FT_Open_Args">FT_Open_Args</a>*  parameters );
1945
1946 </pre></table><br>
1947 <table align=center width="87%"><tr><td>
1948 <p>&lsquo;Attach&rsquo; data to a face object. Normally, this is used to read additional information for the face object. For example, you can attach an AFM file that comes with a Type&nbsp;1 font to get the kerning values and other metrics.</p>
1949 </td></tr></table><br>
1950 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
1951 <p></p>
1952 <table cellpadding=3 border=0>
1953 <tr valign=top><td><b>face</b></td><td>
1954 <p>The target face object.</p>
1955 </td></tr>
1956 </table>
1957 </td></tr></table>
1958 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
1959 <p></p>
1960 <table cellpadding=3 border=0>
1961 <tr valign=top><td><b>parameters</b></td><td>
1962 <p>A pointer to <a href="ft2-base_interface.html#FT_Open_Args">FT_Open_Args</a> which must be filled by the caller.</p>
1963 </td></tr>
1964 </table>
1965 </td></tr></table>
1966 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
1967 <p>FreeType error code. 0&nbsp;means success.</p>
1968 </td></tr></table>
1969 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
1970 <p>The meaning of the &lsquo;attach&rsquo; (i.e., what really happens when the new file is read) is not fixed by FreeType itself. It really depends on the font format (and thus the font driver).</p>
1971 <p>Client applications are expected to know what they are doing when invoking this function. Most drivers simply do not implement file attachments.</p>
1972 </td></tr></table>
1973 </td></tr></table>
1974 <hr width="75%">
1975 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1976 <td width="100%"></td>
1977 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1978
1979 <table align=center width="75%"><tr><td>
1980 <h4><a name="FT_Reference_Face">FT_Reference_Face</a></h4>
1981 <table align=center width="87%"><tr><td>
1982 Defined in FT_FREETYPE_H (freetype/freetype.h).
1983 </td></tr></table><br>
1984 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1985
1986   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
1987   <b>FT_Reference_Face</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>  face );
1988
1989 </pre></table><br>
1990 <table align=center width="87%"><tr><td>
1991 <p>A counter gets initialized to&nbsp;1 at the time an <a href="ft2-base_interface.html#FT_Face">FT_Face</a> structure is created. This function increments the counter. <a href="ft2-base_interface.html#FT_Done_Face">FT_Done_Face</a> then only destroys a face if the counter is&nbsp;1, otherwise it simply decrements the counter.</p>
1992 <p>This function helps in managing life-cycles of structures which reference <a href="ft2-base_interface.html#FT_Face">FT_Face</a> objects.</p>
1993 </td></tr></table><br>
1994 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
1995 <p></p>
1996 <table cellpadding=3 border=0>
1997 <tr valign=top><td><b>face</b></td><td>
1998 <p>A handle to a target face object.</p>
1999 </td></tr>
2000 </table>
2001 </td></tr></table>
2002 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
2003 <p>FreeType error code. 0&nbsp;means success.</p>
2004 </td></tr></table>
2005 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>since</b></em></td></tr><tr><td>
2006 <p>2.4.2</p>
2007 </td></tr></table>
2008 </td></tr></table>
2009 <hr width="75%">
2010 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2011 <td width="100%"></td>
2012 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2013
2014 <table align=center width="75%"><tr><td>
2015 <h4><a name="FT_Done_Face">FT_Done_Face</a></h4>
2016 <table align=center width="87%"><tr><td>
2017 Defined in FT_FREETYPE_H (freetype/freetype.h).
2018 </td></tr></table><br>
2019 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2020
2021   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
2022   <b>FT_Done_Face</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>  face );
2023
2024 </pre></table><br>
2025 <table align=center width="87%"><tr><td>
2026 <p>Discard a given face object, as well as all of its child slots and sizes.</p>
2027 </td></tr></table><br>
2028 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
2029 <p></p>
2030 <table cellpadding=3 border=0>
2031 <tr valign=top><td><b>face</b></td><td>
2032 <p>A handle to a target face object.</p>
2033 </td></tr>
2034 </table>
2035 </td></tr></table>
2036 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
2037 <p>FreeType error code. 0&nbsp;means success.</p>
2038 </td></tr></table>
2039 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
2040 <p>See the discussion of reference counters in the description of <a href="ft2-base_interface.html#FT_Reference_Face">FT_Reference_Face</a>.</p>
2041 </td></tr></table>
2042 </td></tr></table>
2043 <hr width="75%">
2044 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2045 <td width="100%"></td>
2046 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2047
2048 <table align=center width="75%"><tr><td>
2049 <h4><a name="FT_Select_Size">FT_Select_Size</a></h4>
2050 <table align=center width="87%"><tr><td>
2051 Defined in FT_FREETYPE_H (freetype/freetype.h).
2052 </td></tr></table><br>
2053 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2054
2055   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
2056   <b>FT_Select_Size</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>  face,
2057                   <a href="ft2-basic_types.html#FT_Int">FT_Int</a>   strike_index );
2058
2059 </pre></table><br>
2060 <table align=center width="87%"><tr><td>
2061 <p>Select a bitmap strike.</p>
2062 </td></tr></table><br>
2063 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
2064 <p></p>
2065 <table cellpadding=3 border=0>
2066 <tr valign=top><td><b>face</b></td><td>
2067 <p>A handle to a target face object.</p>
2068 </td></tr>
2069 </table>
2070 </td></tr></table>
2071 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
2072 <p></p>
2073 <table cellpadding=3 border=0>
2074 <tr valign=top><td><b>strike_index</b></td><td>
2075 <p>The index of the bitmap strike in the &lsquo;available_sizes&rsquo; field of <a href="ft2-base_interface.html#FT_FaceRec">FT_FaceRec</a> structure.</p>
2076 </td></tr>
2077 </table>
2078 </td></tr></table>
2079 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
2080 <p>FreeType error code. 0&nbsp;means success.</p>
2081 </td></tr></table>
2082 </td></tr></table>
2083 <hr width="75%">
2084 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2085 <td width="100%"></td>
2086 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2087
2088 <table align=center width="75%"><tr><td>
2089 <h4><a name="FT_Size_Request_Type">FT_Size_Request_Type</a></h4>
2090 <table align=center width="87%"><tr><td>
2091 Defined in FT_FREETYPE_H (freetype/freetype.h).
2092 </td></tr></table><br>
2093 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2094
2095   <span class="keyword">typedef</span> <span class="keyword">enum</span>  FT_Size_Request_Type_
2096   {
2097     <a href="ft2-base_interface.html#FT_Size_Request_Type">FT_SIZE_REQUEST_TYPE_NOMINAL</a>,
2098     <a href="ft2-base_interface.html#FT_Size_Request_Type">FT_SIZE_REQUEST_TYPE_REAL_DIM</a>,
2099     <a href="ft2-base_interface.html#FT_Size_Request_Type">FT_SIZE_REQUEST_TYPE_BBOX</a>,
2100     <a href="ft2-base_interface.html#FT_Size_Request_Type">FT_SIZE_REQUEST_TYPE_CELL</a>,
2101     <a href="ft2-base_interface.html#FT_Size_Request_Type">FT_SIZE_REQUEST_TYPE_SCALES</a>,
2102
2103     FT_SIZE_REQUEST_TYPE_MAX
2104
2105   } <b>FT_Size_Request_Type</b>;
2106
2107 </pre></table><br>
2108 <table align=center width="87%"><tr><td>
2109 <p>An enumeration type that lists the supported size request types.</p>
2110 </td></tr></table><br>
2111 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td>
2112 <p></p>
2113 <table cellpadding=3 border=0>
2114 <tr valign=top><td colspan=0><b>FT_SIZE_REQUEST_TYPE_NOMINAL</b></td></tr>
2115 <tr valign=top><td></td><td>
2116 <p>The nominal size. The &lsquo;units_per_EM&rsquo; field of <a href="ft2-base_interface.html#FT_FaceRec">FT_FaceRec</a> is used to determine both scaling values.</p>
2117 </td></tr>
2118 <tr valign=top><td colspan=0><b>FT_SIZE_REQUEST_TYPE_REAL_DIM</b></td></tr>
2119 <tr valign=top><td></td><td>
2120 <p>The real dimension. The sum of the the &lsquo;ascender&rsquo; and (minus of) the &lsquo;descender&rsquo; fields of <a href="ft2-base_interface.html#FT_FaceRec">FT_FaceRec</a> are used to determine both scaling values.</p>
2121 </td></tr>
2122 <tr valign=top><td colspan=0><b>FT_SIZE_REQUEST_TYPE_BBOX</b></td></tr>
2123 <tr valign=top><td></td><td>
2124 <p>The font bounding box. The width and height of the &lsquo;bbox&rsquo; field of <a href="ft2-base_interface.html#FT_FaceRec">FT_FaceRec</a> are used to determine the horizontal and vertical scaling value, respectively.</p>
2125 </td></tr>
2126 <tr valign=top><td colspan=0><b>FT_SIZE_REQUEST_TYPE_CELL</b></td></tr>
2127 <tr valign=top><td></td><td>
2128 <p>The &lsquo;max_advance_width&rsquo; field of <a href="ft2-base_interface.html#FT_FaceRec">FT_FaceRec</a> is used to determine the horizontal scaling value; the vertical scaling value is determined the same way as <a href="ft2-base_interface.html#FT_Size_Request_Type">FT_SIZE_REQUEST_TYPE_REAL_DIM</a> does. Finally, both scaling values are set to the smaller one. This type is useful if you want to specify the font size for, say, a window of a given dimension and 80x24 cells.</p>
2129 </td></tr>
2130 <tr valign=top><td colspan=0><b>FT_SIZE_REQUEST_TYPE_SCALES</b></td></tr>
2131 <tr valign=top><td></td><td>
2132 <p>Specify the scaling values directly.</p>
2133 </td></tr>
2134 </table>
2135 </td></tr></table>
2136 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
2137 <p>The above descriptions only apply to scalable formats. For bitmap formats, the behaviour is up to the driver.</p>
2138 <p>See the note section of <a href="ft2-base_interface.html#FT_Size_Metrics">FT_Size_Metrics</a> if you wonder how size requesting relates to scaling values.</p>
2139 </td></tr></table>
2140 </td></tr></table>
2141 <hr width="75%">
2142 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2143 <td width="100%"></td>
2144 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2145
2146 <table align=center width="75%"><tr><td>
2147 <h4><a name="FT_Size_RequestRec">FT_Size_RequestRec</a></h4>
2148 <table align=center width="87%"><tr><td>
2149 Defined in FT_FREETYPE_H (freetype/freetype.h).
2150 </td></tr></table><br>
2151 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2152
2153   <span class="keyword">typedef</span> <span class="keyword">struct</span>  FT_Size_RequestRec_
2154   {
2155     <a href="ft2-base_interface.html#FT_Size_Request_Type">FT_Size_Request_Type</a>  type;
2156     <a href="ft2-basic_types.html#FT_Long">FT_Long</a>               width;
2157     <a href="ft2-basic_types.html#FT_Long">FT_Long</a>               height;
2158     <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>               horiResolution;
2159     <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>               vertResolution;
2160
2161   } <b>FT_Size_RequestRec</b>;
2162
2163 </pre></table><br>
2164 <table align=center width="87%"><tr><td>
2165 <p>A structure used to model a size request.</p>
2166 </td></tr></table><br>
2167 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>fields</b></em></td></tr><tr><td>
2168 <p></p>
2169 <table cellpadding=3 border=0>
2170 <tr valign=top><td><b>type</b></td><td>
2171 <p>See <a href="ft2-base_interface.html#FT_Size_Request_Type">FT_Size_Request_Type</a>.</p>
2172 </td></tr>
2173 <tr valign=top><td><b>width</b></td><td>
2174 <p>The desired width.</p>
2175 </td></tr>
2176 <tr valign=top><td><b>height</b></td><td>
2177 <p>The desired height.</p>
2178 </td></tr>
2179 <tr valign=top><td><b>horiResolution</b></td><td>
2180 <p>The horizontal resolution. If set to zero, &lsquo;width&rsquo; is treated as a 26.6 fractional pixel value.</p>
2181 </td></tr>
2182 <tr valign=top><td><b>vertResolution</b></td><td>
2183 <p>The vertical resolution. If set to zero, &lsquo;height&rsquo; is treated as a 26.6 fractional pixel value.</p>
2184 </td></tr>
2185 </table>
2186 </td></tr></table>
2187 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
2188 <p>If &lsquo;width&rsquo; is zero, then the horizontal scaling value is set equal to the vertical scaling value, and vice versa.</p>
2189 </td></tr></table>
2190 </td></tr></table>
2191 <hr width="75%">
2192 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2193 <td width="100%"></td>
2194 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2195
2196 <table align=center width="75%"><tr><td>
2197 <h4><a name="FT_Size_Request">FT_Size_Request</a></h4>
2198 <table align=center width="87%"><tr><td>
2199 Defined in FT_FREETYPE_H (freetype/freetype.h).
2200 </td></tr></table><br>
2201 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2202
2203   <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_Size_RequestRec_  *<b>FT_Size_Request</b>;
2204
2205 </pre></table><br>
2206 <table align=center width="87%"><tr><td>
2207 <p>A handle to a size request structure.</p>
2208 </td></tr></table><br>
2209 </td></tr></table>
2210 <hr width="75%">
2211 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2212 <td width="100%"></td>
2213 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2214
2215 <table align=center width="75%"><tr><td>
2216 <h4><a name="FT_Request_Size">FT_Request_Size</a></h4>
2217 <table align=center width="87%"><tr><td>
2218 Defined in FT_FREETYPE_H (freetype/freetype.h).
2219 </td></tr></table><br>
2220 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2221
2222   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
2223   <b>FT_Request_Size</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>          face,
2224                    <a href="ft2-base_interface.html#FT_Size_Request">FT_Size_Request</a>  req );
2225
2226 </pre></table><br>
2227 <table align=center width="87%"><tr><td>
2228 <p>Resize the scale of the active <a href="ft2-base_interface.html#FT_Size">FT_Size</a> object in a face.</p>
2229 </td></tr></table><br>
2230 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
2231 <p></p>
2232 <table cellpadding=3 border=0>
2233 <tr valign=top><td><b>face</b></td><td>
2234 <p>A handle to a target face object.</p>
2235 </td></tr>
2236 </table>
2237 </td></tr></table>
2238 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
2239 <p></p>
2240 <table cellpadding=3 border=0>
2241 <tr valign=top><td><b>req</b></td><td>
2242 <p>A pointer to a <a href="ft2-base_interface.html#FT_Size_RequestRec">FT_Size_RequestRec</a>.</p>
2243 </td></tr>
2244 </table>
2245 </td></tr></table>
2246 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
2247 <p>FreeType error code. 0&nbsp;means success.</p>
2248 </td></tr></table>
2249 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
2250 <p>Although drivers may select the bitmap strike matching the request, you should not rely on this if you intend to select a particular bitmap strike. Use <a href="ft2-base_interface.html#FT_Select_Size">FT_Select_Size</a> instead in that case.</p>
2251 </td></tr></table>
2252 </td></tr></table>
2253 <hr width="75%">
2254 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2255 <td width="100%"></td>
2256 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2257
2258 <table align=center width="75%"><tr><td>
2259 <h4><a name="FT_Set_Char_Size">FT_Set_Char_Size</a></h4>
2260 <table align=center width="87%"><tr><td>
2261 Defined in FT_FREETYPE_H (freetype/freetype.h).
2262 </td></tr></table><br>
2263 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2264
2265   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
2266   <b>FT_Set_Char_Size</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>     face,
2267                     <a href="ft2-basic_types.html#FT_F26Dot6">FT_F26Dot6</a>  char_width,
2268                     <a href="ft2-basic_types.html#FT_F26Dot6">FT_F26Dot6</a>  char_height,
2269                     <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>     horz_resolution,
2270                     <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>     vert_resolution );
2271
2272 </pre></table><br>
2273 <table align=center width="87%"><tr><td>
2274 <p>This function calls <a href="ft2-base_interface.html#FT_Request_Size">FT_Request_Size</a> to request the nominal size (in points).</p>
2275 </td></tr></table><br>
2276 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
2277 <p></p>
2278 <table cellpadding=3 border=0>
2279 <tr valign=top><td><b>face</b></td><td>
2280 <p>A handle to a target face object.</p>
2281 </td></tr>
2282 </table>
2283 </td></tr></table>
2284 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
2285 <p></p>
2286 <table cellpadding=3 border=0>
2287 <tr valign=top><td><b>char_width</b></td><td>
2288 <p>The nominal width, in 26.6 fractional points.</p>
2289 </td></tr>
2290 <tr valign=top><td><b>char_height</b></td><td>
2291 <p>The nominal height, in 26.6 fractional points.</p>
2292 </td></tr>
2293 <tr valign=top><td><b>horz_resolution</b></td><td>
2294 <p>The horizontal resolution in dpi.</p>
2295 </td></tr>
2296 <tr valign=top><td><b>vert_resolution</b></td><td>
2297 <p>The vertical resolution in dpi.</p>
2298 </td></tr>
2299 </table>
2300 </td></tr></table>
2301 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
2302 <p>FreeType error code. 0&nbsp;means success.</p>
2303 </td></tr></table>
2304 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
2305 <p>If either the character width or height is zero, it is set equal to the other value.</p>
2306 <p>If either the horizontal or vertical resolution is zero, it is set equal to the other value.</p>
2307 <p>A character width or height smaller than 1pt is set to 1pt; if both resolution values are zero, they are set to 72dpi.</p>
2308 <p>Don't use this function if you are using the FreeType cache API.</p>
2309 </td></tr></table>
2310 </td></tr></table>
2311 <hr width="75%">
2312 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2313 <td width="100%"></td>
2314 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2315
2316 <table align=center width="75%"><tr><td>
2317 <h4><a name="FT_Set_Pixel_Sizes">FT_Set_Pixel_Sizes</a></h4>
2318 <table align=center width="87%"><tr><td>
2319 Defined in FT_FREETYPE_H (freetype/freetype.h).
2320 </td></tr></table><br>
2321 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2322
2323   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
2324   <b>FT_Set_Pixel_Sizes</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>  face,
2325                       <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>  pixel_width,
2326                       <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>  pixel_height );
2327
2328 </pre></table><br>
2329 <table align=center width="87%"><tr><td>
2330 <p>This function calls <a href="ft2-base_interface.html#FT_Request_Size">FT_Request_Size</a> to request the nominal size (in pixels).</p>
2331 </td></tr></table><br>
2332 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
2333 <p></p>
2334 <table cellpadding=3 border=0>
2335 <tr valign=top><td><b>face</b></td><td>
2336 <p>A handle to the target face object.</p>
2337 </td></tr>
2338 </table>
2339 </td></tr></table>
2340 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
2341 <p></p>
2342 <table cellpadding=3 border=0>
2343 <tr valign=top><td><b>pixel_width</b></td><td>
2344 <p>The nominal width, in pixels.</p>
2345 </td></tr>
2346 <tr valign=top><td><b>pixel_height</b></td><td>
2347 <p>The nominal height, in pixels.</p>
2348 </td></tr>
2349 </table>
2350 </td></tr></table>
2351 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
2352 <p>FreeType error code. 0&nbsp;means success.</p>
2353 </td></tr></table>
2354 </td></tr></table>
2355 <hr width="75%">
2356 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2357 <td width="100%"></td>
2358 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2359
2360 <table align=center width="75%"><tr><td>
2361 <h4><a name="FT_Load_Glyph">FT_Load_Glyph</a></h4>
2362 <table align=center width="87%"><tr><td>
2363 Defined in FT_FREETYPE_H (freetype/freetype.h).
2364 </td></tr></table><br>
2365 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2366
2367   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
2368   <b>FT_Load_Glyph</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>   face,
2369                  <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>   glyph_index,
2370                  <a href="ft2-basic_types.html#FT_Int32">FT_Int32</a>  load_flags );
2371
2372 </pre></table><br>
2373 <table align=center width="87%"><tr><td>
2374 <p>A function used to load a single glyph into the glyph slot of a face object.</p>
2375 </td></tr></table><br>
2376 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
2377 <p></p>
2378 <table cellpadding=3 border=0>
2379 <tr valign=top><td><b>face</b></td><td>
2380 <p>A handle to the target face object where the glyph is loaded.</p>
2381 </td></tr>
2382 </table>
2383 </td></tr></table>
2384 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
2385 <p></p>
2386 <table cellpadding=3 border=0>
2387 <tr valign=top><td><b>glyph_index</b></td><td>
2388 <p>The index of the glyph in the font file. For CID-keyed fonts (either in PS or in CFF format) this argument specifies the CID value.</p>
2389 </td></tr>
2390 <tr valign=top><td><b>load_flags</b></td><td>
2391 <p>A flag indicating what to load for this glyph. The <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_XXX</a> constants can be used to control the glyph loading process (e.g., whether the outline should be scaled, whether to load bitmaps or not, whether to hint the outline, etc).</p>
2392 </td></tr>
2393 </table>
2394 </td></tr></table>
2395 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
2396 <p>FreeType error code. 0&nbsp;means success.</p>
2397 </td></tr></table>
2398 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
2399 <p>The loaded glyph may be transformed. See <a href="ft2-base_interface.html#FT_Set_Transform">FT_Set_Transform</a> for the details.</p>
2400 <p>For subsetted CID-keyed fonts, &lsquo;FT_Err_Invalid_Argument&rsquo; is returned for invalid CID values (this is, for CID values which don't have a corresponding glyph in the font). See the discussion of the <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_CID_KEYED</a> flag for more details.</p>
2401 </td></tr></table>
2402 </td></tr></table>
2403 <hr width="75%">
2404 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2405 <td width="100%"></td>
2406 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2407
2408 <table align=center width="75%"><tr><td>
2409 <h4><a name="FT_Load_Char">FT_Load_Char</a></h4>
2410 <table align=center width="87%"><tr><td>
2411 Defined in FT_FREETYPE_H (freetype/freetype.h).
2412 </td></tr></table><br>
2413 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2414
2415   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
2416   <b>FT_Load_Char</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>   face,
2417                 <a href="ft2-basic_types.html#FT_ULong">FT_ULong</a>  char_code,
2418                 <a href="ft2-basic_types.html#FT_Int32">FT_Int32</a>  load_flags );
2419
2420 </pre></table><br>
2421 <table align=center width="87%"><tr><td>
2422 <p>A function used to load a single glyph into the glyph slot of a face object, according to its character code.</p>
2423 </td></tr></table><br>
2424 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
2425 <p></p>
2426 <table cellpadding=3 border=0>
2427 <tr valign=top><td><b>face</b></td><td>
2428 <p>A handle to a target face object where the glyph is loaded.</p>
2429 </td></tr>
2430 </table>
2431 </td></tr></table>
2432 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
2433 <p></p>
2434 <table cellpadding=3 border=0>
2435 <tr valign=top><td><b>char_code</b></td><td>
2436 <p>The glyph's character code, according to the current charmap used in the face.</p>
2437 </td></tr>
2438 <tr valign=top><td><b>load_flags</b></td><td>
2439 <p>A flag indicating what to load for this glyph. The <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_XXX</a> constants can be used to control the glyph loading process (e.g., whether the outline should be scaled, whether to load bitmaps or not, whether to hint the outline, etc).</p>
2440 </td></tr>
2441 </table>
2442 </td></tr></table>
2443 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
2444 <p>FreeType error code. 0&nbsp;means success.</p>
2445 </td></tr></table>
2446 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
2447 <p>This function simply calls <a href="ft2-base_interface.html#FT_Get_Char_Index">FT_Get_Char_Index</a> and <a href="ft2-base_interface.html#FT_Load_Glyph">FT_Load_Glyph</a>.</p>
2448 </td></tr></table>
2449 </td></tr></table>
2450 <hr width="75%">
2451 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2452 <td width="100%"></td>
2453 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2454
2455 <table align=center width="75%"><tr><td>
2456 <h4><a name="FT_LOAD_XXX">FT_LOAD_XXX</a></h4>
2457 <table align=center width="87%"><tr><td>
2458 Defined in FT_FREETYPE_H (freetype/freetype.h).
2459 </td></tr></table><br>
2460 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2461
2462 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_DEFAULT</a>                      0x0
2463 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_SCALE</a>                     ( 1L &lt;&lt; 0 )
2464 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_HINTING</a>                   ( 1L &lt;&lt; 1 )
2465 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_RENDER</a>                       ( 1L &lt;&lt; 2 )
2466 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_BITMAP</a>                    ( 1L &lt;&lt; 3 )
2467 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_VERTICAL_LAYOUT</a>              ( 1L &lt;&lt; 4 )
2468 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_FORCE_AUTOHINT</a>               ( 1L &lt;&lt; 5 )
2469 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_CROP_BITMAP</a>                  ( 1L &lt;&lt; 6 )
2470 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_PEDANTIC</a>                     ( 1L &lt;&lt; 7 )
2471 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH</a>  ( 1L &lt;&lt; 9 )
2472 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_RECURSE</a>                   ( 1L &lt;&lt; 10 )
2473 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_IGNORE_TRANSFORM</a>             ( 1L &lt;&lt; 11 )
2474 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_MONOCHROME</a>                   ( 1L &lt;&lt; 12 )
2475 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_LINEAR_DESIGN</a>                ( 1L &lt;&lt; 13 )
2476 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_AUTOHINT</a>                  ( 1L &lt;&lt; 15 )
2477
2478 </pre></table><br>
2479 <table align=center width="87%"><tr><td>
2480 <p>A list of bit-field constants used with <a href="ft2-base_interface.html#FT_Load_Glyph">FT_Load_Glyph</a> to indicate what kind of operations to perform during glyph loading.</p>
2481 </td></tr></table><br>
2482 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td>
2483 <p></p>
2484 <table cellpadding=3 border=0>
2485 <tr valign=top><td><b>FT_LOAD_DEFAULT</b></td><td>
2486 <p>Corresponding to&nbsp;0, this value is used as the default glyph load operation. In this case, the following happens:</p>
2487 <p>1. FreeType looks for a bitmap for the glyph corresponding to the face's current size. If one is found, the function returns. The bitmap data can be accessed from the glyph slot (see note below).</p>
2488 <p>2. If no embedded bitmap is searched or found, FreeType looks for a scalable outline. If one is found, it is loaded from the font file, scaled to device pixels, then &lsquo;hinted&rsquo; to the pixel grid in order to optimize it. The outline data can be accessed from the glyph slot (see note below).</p>
2489 <p>Note that by default, the glyph loader doesn't render outlines into bitmaps. The following flags are used to modify this default behaviour to more specific and useful cases.</p>
2490 </td></tr>
2491 <tr valign=top><td><b>FT_LOAD_NO_SCALE</b></td><td>
2492 <p>Don't scale the outline glyph loaded, but keep it in font units.</p>
2493 <p>This flag implies <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_HINTING</a> and <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_BITMAP</a>, and unsets <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_RENDER</a>.</p>
2494 </td></tr>
2495 <tr valign=top><td><b>FT_LOAD_NO_HINTING</b></td><td>
2496 <p>Disable hinting. This generally generates &lsquo;blurrier&rsquo; bitmap glyph when the glyph is rendered in any of the anti-aliased modes. See also the note below.</p>
2497 <p>This flag is implied by <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_SCALE</a>.</p>
2498 </td></tr>
2499 <tr valign=top><td><b>FT_LOAD_RENDER</b></td><td>
2500 <p>Call <a href="ft2-base_interface.html#FT_Render_Glyph">FT_Render_Glyph</a> after the glyph is loaded. By default, the glyph is rendered in <a href="ft2-base_interface.html#FT_Render_Mode">FT_RENDER_MODE_NORMAL</a> mode. This can be overridden by <a href="ft2-base_interface.html#FT_LOAD_TARGET_XXX">FT_LOAD_TARGET_XXX</a> or <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_MONOCHROME</a>.</p>
2501 <p>This flag is unset by <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_SCALE</a>.</p>
2502 </td></tr>
2503 <tr valign=top><td><b>FT_LOAD_NO_BITMAP</b></td><td>
2504 <p>Ignore bitmap strikes when loading. Bitmap-only fonts ignore this flag.</p>
2505 <p><a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_SCALE</a> always sets this flag.</p>
2506 </td></tr>
2507 <tr valign=top><td colspan=0><b>FT_LOAD_VERTICAL_LAYOUT</b></td></tr>
2508 <tr valign=top><td></td><td>
2509 <p>Load the glyph for vertical text layout. <i>Don't</i> use it as it is problematic currently.</p>
2510 </td></tr>
2511 <tr valign=top><td><b>FT_LOAD_FORCE_AUTOHINT</b></td><td>
2512 <p>Indicates that the auto-hinter is preferred over the font's native hinter. See also the note below.</p>
2513 </td></tr>
2514 <tr valign=top><td><b>FT_LOAD_CROP_BITMAP</b></td><td>
2515 <p>Indicates that the font driver should crop the loaded bitmap glyph (i.e., remove all space around its black bits). Not all drivers implement this.</p>
2516 </td></tr>
2517 <tr valign=top><td><b>FT_LOAD_PEDANTIC</b></td><td>
2518 <p>Indicates that the font driver should perform pedantic verifications during glyph loading. This is mostly used to detect broken glyphs in fonts. By default, FreeType tries to handle broken fonts also.</p>
2519 <p>In particular, errors from the TrueType bytecode engine are not passed to the application if this flag is not set; this might result in partially hinted or distorted glyphs in case a glyph's bytecode is buggy.</p>
2520 </td></tr>
2521 <tr valign=top><td colspan=0><b>FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH</b></td></tr>
2522 <tr valign=top><td></td><td>
2523 <p>Ignored. Deprecated.</p>
2524 </td></tr>
2525 <tr valign=top><td><b>FT_LOAD_NO_RECURSE</b></td><td>
2526 <p>This flag is only used internally. It merely indicates that the font driver should not load composite glyphs recursively. Instead, it should set the &lsquo;num_subglyph&rsquo; and &lsquo;subglyphs&rsquo; values of the glyph slot accordingly, and set &lsquo;glyph-&gt;format&rsquo; to <a href="ft2-basic_types.html#FT_Glyph_Format">FT_GLYPH_FORMAT_COMPOSITE</a>.</p>
2527 <p>The description of sub-glyphs is not available to client applications for now.</p>
2528 <p>This flag implies <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_SCALE</a> and <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_IGNORE_TRANSFORM</a>.</p>
2529 </td></tr>
2530 <tr valign=top><td colspan=0><b>FT_LOAD_IGNORE_TRANSFORM</b></td></tr>
2531 <tr valign=top><td></td><td>
2532 <p>Indicates that the transform matrix set by <a href="ft2-base_interface.html#FT_Set_Transform">FT_Set_Transform</a> should be ignored.</p>
2533 </td></tr>
2534 <tr valign=top><td><b>FT_LOAD_MONOCHROME</b></td><td>
2535 <p>This flag is used with <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_RENDER</a> to indicate that you want to render an outline glyph to a 1-bit monochrome bitmap glyph, with 8&nbsp;pixels packed into each byte of the bitmap data.</p>
2536 <p>Note that this has no effect on the hinting algorithm used. You should rather use <a href="ft2-base_interface.html#FT_LOAD_TARGET_XXX">FT_LOAD_TARGET_MONO</a> so that the monochrome-optimized hinting algorithm is used.</p>
2537 </td></tr>
2538 <tr valign=top><td><b>FT_LOAD_LINEAR_DESIGN</b></td><td>
2539 <p>Indicates that the &lsquo;linearHoriAdvance&rsquo; and &lsquo;linearVertAdvance&rsquo; fields of <a href="ft2-base_interface.html#FT_GlyphSlotRec">FT_GlyphSlotRec</a> should be kept in font units. See <a href="ft2-base_interface.html#FT_GlyphSlotRec">FT_GlyphSlotRec</a> for details.</p>
2540 </td></tr>
2541 <tr valign=top><td><b>FT_LOAD_NO_AUTOHINT</b></td><td>
2542 <p>Disable auto-hinter. See also the note below.</p>
2543 </td></tr>
2544 </table>
2545 </td></tr></table>
2546 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
2547 <p>By default, hinting is enabled and the font's native hinter (see <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_HINTER</a>) is preferred over the auto-hinter. You can disable hinting by setting <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_HINTING</a> or change the precedence by setting <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_FORCE_AUTOHINT</a>. You can also set <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_AUTOHINT</a> in case you don't want the auto-hinter to be used at all.</p>
2548 <p>See the description of <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_TRICKY</a> for a special exception (affecting only a handful of Asian fonts).</p>
2549 <p>Besides deciding which hinter to use, you can also decide which hinting algorithm to use. See <a href="ft2-base_interface.html#FT_LOAD_TARGET_XXX">FT_LOAD_TARGET_XXX</a> for details.</p>
2550 </td></tr></table>
2551 </td></tr></table>
2552 <hr width="75%">
2553 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2554 <td width="100%"></td>
2555 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2556
2557 <table align=center width="75%"><tr><td>
2558 <h4><a name="FT_LOAD_TARGET_XXX">FT_LOAD_TARGET_XXX</a></h4>
2559 <table align=center width="87%"><tr><td>
2560 Defined in FT_FREETYPE_H (freetype/freetype.h).
2561 </td></tr></table><br>
2562 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2563
2564 #define FT_LOAD_TARGET_( x )   ( (<a href="ft2-basic_types.html#FT_Int32">FT_Int32</a>)( (x) &amp; 15 ) &lt;&lt; 16 )
2565
2566 #define <a href="ft2-base_interface.html#FT_LOAD_TARGET_XXX">FT_LOAD_TARGET_NORMAL</a>  FT_LOAD_TARGET_( <a href="ft2-base_interface.html#FT_Render_Mode">FT_RENDER_MODE_NORMAL</a> )
2567 #define <a href="ft2-base_interface.html#FT_LOAD_TARGET_XXX">FT_LOAD_TARGET_LIGHT</a>   FT_LOAD_TARGET_( <a href="ft2-base_interface.html#FT_Render_Mode">FT_RENDER_MODE_LIGHT</a>  )
2568 #define <a href="ft2-base_interface.html#FT_LOAD_TARGET_XXX">FT_LOAD_TARGET_MONO</a>    FT_LOAD_TARGET_( <a href="ft2-base_interface.html#FT_Render_Mode">FT_RENDER_MODE_MONO</a>   )
2569 #define <a href="ft2-base_interface.html#FT_LOAD_TARGET_XXX">FT_LOAD_TARGET_LCD</a>     FT_LOAD_TARGET_( <a href="ft2-base_interface.html#FT_Render_Mode">FT_RENDER_MODE_LCD</a>    )
2570 #define <a href="ft2-base_interface.html#FT_LOAD_TARGET_XXX">FT_LOAD_TARGET_LCD_V</a>   FT_LOAD_TARGET_( <a href="ft2-base_interface.html#FT_Render_Mode">FT_RENDER_MODE_LCD_V</a>  )
2571
2572 </pre></table><br>
2573 <table align=center width="87%"><tr><td>
2574 <p>A list of values that are used to select a specific hinting algorithm to use by the hinter. You should OR one of these values to your &lsquo;load_flags&rsquo; when calling <a href="ft2-base_interface.html#FT_Load_Glyph">FT_Load_Glyph</a>.</p>
2575 <p>Note that font's native hinters may ignore the hinting algorithm you have specified (e.g., the TrueType bytecode interpreter). You can set <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_FORCE_AUTOHINT</a> to ensure that the auto-hinter is used.</p>
2576 <p>Also note that <a href="ft2-base_interface.html#FT_LOAD_TARGET_XXX">FT_LOAD_TARGET_LIGHT</a> is an exception, in that it always implies <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_FORCE_AUTOHINT</a>.</p>
2577 </td></tr></table><br>
2578 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td>
2579 <p></p>
2580 <table cellpadding=3 border=0>
2581 <tr valign=top><td><b>FT_LOAD_TARGET_NORMAL</b></td><td>
2582 <p>This corresponds to the default hinting algorithm, optimized for standard gray-level rendering. For monochrome output, use <a href="ft2-base_interface.html#FT_LOAD_TARGET_XXX">FT_LOAD_TARGET_MONO</a> instead.</p>
2583 </td></tr>
2584 <tr valign=top><td><b>FT_LOAD_TARGET_LIGHT</b></td><td>
2585 <p>A lighter hinting algorithm for non-monochrome modes. Many generated glyphs are more fuzzy but better resemble its original shape. A bit like rendering on Mac OS&nbsp;X.</p>
2586 <p>As a special exception, this target implies <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_FORCE_AUTOHINT</a>.</p>
2587 </td></tr>
2588 <tr valign=top><td><b>FT_LOAD_TARGET_MONO</b></td><td>
2589 <p>Strong hinting algorithm that should only be used for monochrome output. The result is probably unpleasant if the glyph is rendered in non-monochrome modes.</p>
2590 </td></tr>
2591 <tr valign=top><td><b>FT_LOAD_TARGET_LCD</b></td><td>
2592 <p>A variant of <a href="ft2-base_interface.html#FT_LOAD_TARGET_XXX">FT_LOAD_TARGET_NORMAL</a> optimized for horizontally decimated LCD displays.</p>
2593 </td></tr>
2594 <tr valign=top><td><b>FT_LOAD_TARGET_LCD_V</b></td><td>
2595 <p>A variant of <a href="ft2-base_interface.html#FT_LOAD_TARGET_XXX">FT_LOAD_TARGET_NORMAL</a> optimized for vertically decimated LCD displays.</p>
2596 </td></tr>
2597 </table>
2598 </td></tr></table>
2599 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
2600 <p>You should use only <i>one</i> of the FT_LOAD_TARGET_XXX values in your &lsquo;load_flags&rsquo;. They can't be ORed.</p>
2601 <p>If <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_RENDER</a> is also set, the glyph is rendered in the corresponding mode (i.e., the mode which matches the used algorithm best) unless <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_MONOCHROME</a> is set.</p>
2602 <p>You can use a hinting algorithm that doesn't correspond to the same rendering mode. As an example, it is possible to use the &lsquo;light&rsquo; hinting algorithm and have the results rendered in horizontal LCD pixel mode, with code like</p>
2603 <pre class="colored">
2604   FT_Load_Glyph( face, glyph_index,
2605                  load_flags | FT_LOAD_TARGET_LIGHT );
2606
2607   FT_Render_Glyph( face-&gt;glyph, FT_RENDER_MODE_LCD );
2608 </pre>
2609 </td></tr></table>
2610 </td></tr></table>
2611 <hr width="75%">
2612 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2613 <td width="100%"></td>
2614 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2615
2616 <table align=center width="75%"><tr><td>
2617 <h4><a name="FT_LOAD_TARGET_MODE">FT_LOAD_TARGET_MODE</a></h4>
2618 <table align=center width="87%"><tr><td>
2619 Defined in FT_FREETYPE_H (freetype/freetype.h).
2620 </td></tr></table><br>
2621 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2622
2623 #define <b>FT_LOAD_TARGET_MODE</b>( x )  ( (<a href="ft2-base_interface.html#FT_Render_Mode">FT_Render_Mode</a>)( ( (x) &gt;&gt; 16 ) &amp; 15 ) )
2624
2625 </pre></table><br>
2626 <table align=center width="87%"><tr><td>
2627 <p>Return the <a href="ft2-base_interface.html#FT_Render_Mode">FT_Render_Mode</a> corresponding to a given <a href="ft2-base_interface.html#FT_LOAD_TARGET_XXX">FT_LOAD_TARGET_XXX</a> value.</p>
2628 </td></tr></table><br>
2629 </td></tr></table>
2630 <hr width="75%">
2631 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2632 <td width="100%"></td>
2633 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2634
2635 <table align=center width="75%"><tr><td>
2636 <h4><a name="FT_Set_Transform">FT_Set_Transform</a></h4>
2637 <table align=center width="87%"><tr><td>
2638 Defined in FT_FREETYPE_H (freetype/freetype.h).
2639 </td></tr></table><br>
2640 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2641
2642   FT_EXPORT( <span class="keyword">void</span> )
2643   <b>FT_Set_Transform</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>     face,
2644                     <a href="ft2-basic_types.html#FT_Matrix">FT_Matrix</a>*  matrix,
2645                     <a href="ft2-basic_types.html#FT_Vector">FT_Vector</a>*  delta );
2646
2647 </pre></table><br>
2648 <table align=center width="87%"><tr><td>
2649 <p>A function used to set the transformation that is applied to glyph images when they are loaded into a glyph slot through <a href="ft2-base_interface.html#FT_Load_Glyph">FT_Load_Glyph</a>.</p>
2650 </td></tr></table><br>
2651 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
2652 <p></p>
2653 <table cellpadding=3 border=0>
2654 <tr valign=top><td><b>face</b></td><td>
2655 <p>A handle to the source face object.</p>
2656 </td></tr>
2657 </table>
2658 </td></tr></table>
2659 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
2660 <p></p>
2661 <table cellpadding=3 border=0>
2662 <tr valign=top><td><b>matrix</b></td><td>
2663 <p>A pointer to the transformation's 2x2 matrix. Use&nbsp;0 for the identity matrix.</p>
2664 </td></tr>
2665 <tr valign=top><td><b>delta</b></td><td>
2666 <p>A pointer to the translation vector. Use&nbsp;0 for the null vector.</p>
2667 </td></tr>
2668 </table>
2669 </td></tr></table>
2670 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
2671 <p>The transformation is only applied to scalable image formats after the glyph has been loaded. It means that hinting is unaltered by the transformation and is performed on the character size given in the last call to <a href="ft2-base_interface.html#FT_Set_Char_Size">FT_Set_Char_Size</a> or <a href="ft2-base_interface.html#FT_Set_Pixel_Sizes">FT_Set_Pixel_Sizes</a>.</p>
2672 <p>Note that this also transforms the &lsquo;face.glyph.advance&rsquo; field, but <b>not</b> the values in &lsquo;face.glyph.metrics&rsquo;.</p>
2673 </td></tr></table>
2674 </td></tr></table>
2675 <hr width="75%">
2676 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2677 <td width="100%"></td>
2678 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2679
2680 <table align=center width="75%"><tr><td>
2681 <h4><a name="FT_Render_Mode">FT_Render_Mode</a></h4>
2682 <table align=center width="87%"><tr><td>
2683 Defined in FT_FREETYPE_H (freetype/freetype.h).
2684 </td></tr></table><br>
2685 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2686
2687   <span class="keyword">typedef</span> <span class="keyword">enum</span>  FT_Render_Mode_
2688   {
2689     <a href="ft2-base_interface.html#FT_Render_Mode">FT_RENDER_MODE_NORMAL</a> = 0,
2690     <a href="ft2-base_interface.html#FT_Render_Mode">FT_RENDER_MODE_LIGHT</a>,
2691     <a href="ft2-base_interface.html#FT_Render_Mode">FT_RENDER_MODE_MONO</a>,
2692     <a href="ft2-base_interface.html#FT_Render_Mode">FT_RENDER_MODE_LCD</a>,
2693     <a href="ft2-base_interface.html#FT_Render_Mode">FT_RENDER_MODE_LCD_V</a>,
2694
2695     FT_RENDER_MODE_MAX
2696
2697   } <b>FT_Render_Mode</b>;
2698
2699 </pre></table><br>
2700 <table align=center width="87%"><tr><td>
2701 <p>An enumeration type that lists the render modes supported by FreeType&nbsp;2. Each mode corresponds to a specific type of scanline conversion performed on the outline.</p>
2702 <p>For bitmap fonts and embedded bitmaps the &lsquo;bitmap-&gt;pixel_mode&rsquo; field in the <a href="ft2-base_interface.html#FT_GlyphSlotRec">FT_GlyphSlotRec</a> structure gives the format of the returned bitmap.</p>
2703 <p>All modes except <a href="ft2-base_interface.html#FT_Render_Mode">FT_RENDER_MODE_MONO</a> use 256 levels of opacity.</p>
2704 </td></tr></table><br>
2705 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td>
2706 <p></p>
2707 <table cellpadding=3 border=0>
2708 <tr valign=top><td><b>FT_RENDER_MODE_NORMAL</b></td><td>
2709 <p>This is the default render mode; it corresponds to 8-bit anti-aliased bitmaps.</p>
2710 </td></tr>
2711 <tr valign=top><td><b>FT_RENDER_MODE_LIGHT</b></td><td>
2712 <p>This is equivalent to <a href="ft2-base_interface.html#FT_Render_Mode">FT_RENDER_MODE_NORMAL</a>. It is only defined as a separate value because render modes are also used indirectly to define hinting algorithm selectors. See <a href="ft2-base_interface.html#FT_LOAD_TARGET_XXX">FT_LOAD_TARGET_XXX</a> for details.</p>
2713 </td></tr>
2714 <tr valign=top><td><b>FT_RENDER_MODE_MONO</b></td><td>
2715 <p>This mode corresponds to 1-bit bitmaps (with 2&nbsp;levels of opacity).</p>
2716 </td></tr>
2717 <tr valign=top><td><b>FT_RENDER_MODE_LCD</b></td><td>
2718 <p>This mode corresponds to horizontal RGB and BGR sub-pixel displays like LCD screens. It produces 8-bit bitmaps that are 3&nbsp;times the width of the original glyph outline in pixels, and which use the <a href="ft2-basic_types.html#FT_Pixel_Mode">FT_PIXEL_MODE_LCD</a> mode.</p>
2719 </td></tr>
2720 <tr valign=top><td><b>FT_RENDER_MODE_LCD_V</b></td><td>
2721 <p>This mode corresponds to vertical RGB and BGR sub-pixel displays (like PDA screens, rotated LCD displays, etc.). It produces 8-bit bitmaps that are 3&nbsp;times the height of the original glyph outline in pixels and use the <a href="ft2-basic_types.html#FT_Pixel_Mode">FT_PIXEL_MODE_LCD_V</a> mode.</p>
2722 </td></tr>
2723 </table>
2724 </td></tr></table>
2725 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
2726 <p>The LCD-optimized glyph bitmaps produced by FT_Render_Glyph can be filtered to reduce color-fringes by using <a href="ft2-lcd_filtering.html#FT_Library_SetLcdFilter">FT_Library_SetLcdFilter</a> (not active in the default builds). It is up to the caller to either call <a href="ft2-lcd_filtering.html#FT_Library_SetLcdFilter">FT_Library_SetLcdFilter</a> (if available) or do the filtering itself.</p>
2727 <p>The selected render mode only affects vector glyphs of a font. Embedded bitmaps often have a different pixel mode like <a href="ft2-basic_types.html#FT_Pixel_Mode">FT_PIXEL_MODE_MONO</a>. You can use <a href="ft2-bitmap_handling.html#FT_Bitmap_Convert">FT_Bitmap_Convert</a> to transform them into 8-bit pixmaps.</p>
2728 </td></tr></table>
2729 </td></tr></table>
2730 <hr width="75%">
2731 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2732 <td width="100%"></td>
2733 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2734
2735 <table align=center width="75%"><tr><td>
2736 <h4><a name="ft_render_mode_xxx">ft_render_mode_xxx</a></h4>
2737 <table align=center width="87%"><tr><td>
2738 Defined in FT_FREETYPE_H (freetype/freetype.h).
2739 </td></tr></table><br>
2740 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2741
2742 #define <a href="ft2-base_interface.html#ft_render_mode_xxx">ft_render_mode_normal</a>  <a href="ft2-base_interface.html#FT_Render_Mode">FT_RENDER_MODE_NORMAL</a>
2743 #define <a href="ft2-base_interface.html#ft_render_mode_xxx">ft_render_mode_mono</a>    <a href="ft2-base_interface.html#FT_Render_Mode">FT_RENDER_MODE_MONO</a>
2744
2745 </pre></table><br>
2746 <table align=center width="87%"><tr><td>
2747 <p>These constants are deprecated. Use the corresponding <a href="ft2-base_interface.html#FT_Render_Mode">FT_Render_Mode</a> values instead.</p>
2748 </td></tr></table><br>
2749 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td>
2750 <p></p>
2751 <table cellpadding=3 border=0>
2752 <tr valign=top><td><b>ft_render_mode_normal</b></td><td>
2753 <p>see <a href="ft2-base_interface.html#FT_Render_Mode">FT_RENDER_MODE_NORMAL</a></p>
2754 </td></tr>
2755 <tr valign=top><td><b>ft_render_mode_mono</b></td><td>
2756 <p>see <a href="ft2-base_interface.html#FT_Render_Mode">FT_RENDER_MODE_MONO</a></p>
2757 </td></tr>
2758 </table>
2759 </td></tr></table>
2760 </td></tr></table>
2761 <hr width="75%">
2762 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2763 <td width="100%"></td>
2764 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2765
2766 <table align=center width="75%"><tr><td>
2767 <h4><a name="FT_Render_Glyph">FT_Render_Glyph</a></h4>
2768 <table align=center width="87%"><tr><td>
2769 Defined in FT_FREETYPE_H (freetype/freetype.h).
2770 </td></tr></table><br>
2771 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2772
2773   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
2774   <b>FT_Render_Glyph</b>( <a href="ft2-base_interface.html#FT_GlyphSlot">FT_GlyphSlot</a>    slot,
2775                    <a href="ft2-base_interface.html#FT_Render_Mode">FT_Render_Mode</a>  render_mode );
2776
2777 </pre></table><br>
2778 <table align=center width="87%"><tr><td>
2779 <p>Convert a given glyph image to a bitmap. It does so by inspecting the glyph image format, finding the relevant renderer, and invoking it.</p>
2780 </td></tr></table><br>
2781 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
2782 <p></p>
2783 <table cellpadding=3 border=0>
2784 <tr valign=top><td><b>slot</b></td><td>
2785 <p>A handle to the glyph slot containing the image to convert.</p>
2786 </td></tr>
2787 </table>
2788 </td></tr></table>
2789 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
2790 <p></p>
2791 <table cellpadding=3 border=0>
2792 <tr valign=top><td><b>render_mode</b></td><td>
2793 <p>This is the render mode used to render the glyph image into a bitmap. See <a href="ft2-base_interface.html#FT_Render_Mode">FT_Render_Mode</a> for a list of possible values.</p>
2794 </td></tr>
2795 </table>
2796 </td></tr></table>
2797 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
2798 <p>FreeType error code. 0&nbsp;means success.</p>
2799 </td></tr></table>
2800 </td></tr></table>
2801 <hr width="75%">
2802 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2803 <td width="100%"></td>
2804 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2805
2806 <table align=center width="75%"><tr><td>
2807 <h4><a name="FT_Kerning_Mode">FT_Kerning_Mode</a></h4>
2808 <table align=center width="87%"><tr><td>
2809 Defined in FT_FREETYPE_H (freetype/freetype.h).
2810 </td></tr></table><br>
2811 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2812
2813   <span class="keyword">typedef</span> <span class="keyword">enum</span>  FT_Kerning_Mode_
2814   {
2815     <a href="ft2-base_interface.html#FT_Kerning_Mode">FT_KERNING_DEFAULT</a>  = 0,
2816     <a href="ft2-base_interface.html#FT_Kerning_Mode">FT_KERNING_UNFITTED</a>,
2817     <a href="ft2-base_interface.html#FT_Kerning_Mode">FT_KERNING_UNSCALED</a>
2818
2819   } <b>FT_Kerning_Mode</b>;
2820
2821 </pre></table><br>
2822 <table align=center width="87%"><tr><td>
2823 <p>An enumeration used to specify which kerning values to return in <a href="ft2-base_interface.html#FT_Get_Kerning">FT_Get_Kerning</a>.</p>
2824 </td></tr></table><br>
2825 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td>
2826 <p></p>
2827 <table cellpadding=3 border=0>
2828 <tr valign=top><td><b>FT_KERNING_DEFAULT</b></td><td>
2829 <p>Return scaled and grid-fitted kerning distances (value is&nbsp;0).</p>
2830 </td></tr>
2831 <tr valign=top><td><b>FT_KERNING_UNFITTED</b></td><td>
2832 <p>Return scaled but un-grid-fitted kerning distances.</p>
2833 </td></tr>
2834 <tr valign=top><td><b>FT_KERNING_UNSCALED</b></td><td>
2835 <p>Return the kerning vector in original font units.</p>
2836 </td></tr>
2837 </table>
2838 </td></tr></table>
2839 </td></tr></table>
2840 <hr width="75%">
2841 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2842 <td width="100%"></td>
2843 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2844
2845 <table align=center width="75%"><tr><td>
2846 <h4><a name="ft_kerning_default">ft_kerning_default</a></h4>
2847 <table align=center width="87%"><tr><td>
2848 Defined in FT_FREETYPE_H (freetype/freetype.h).
2849 </td></tr></table><br>
2850 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2851
2852 #define <b>ft_kerning_default</b>   <a href="ft2-base_interface.html#FT_Kerning_Mode">FT_KERNING_DEFAULT</a>
2853
2854 </pre></table><br>
2855 <table align=center width="87%"><tr><td>
2856 <p>This constant is deprecated. Please use <a href="ft2-base_interface.html#FT_Kerning_Mode">FT_KERNING_DEFAULT</a> instead.</p>
2857 </td></tr></table><br>
2858 </td></tr></table>
2859 <hr width="75%">
2860 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2861 <td width="100%"></td>
2862 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2863
2864 <table align=center width="75%"><tr><td>
2865 <h4><a name="ft_kerning_unfitted">ft_kerning_unfitted</a></h4>
2866 <table align=center width="87%"><tr><td>
2867 Defined in FT_FREETYPE_H (freetype/freetype.h).
2868 </td></tr></table><br>
2869 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2870
2871 #define <b>ft_kerning_unfitted</b>  <a href="ft2-base_interface.html#FT_Kerning_Mode">FT_KERNING_UNFITTED</a>
2872
2873 </pre></table><br>
2874 <table align=center width="87%"><tr><td>
2875 <p>This constant is deprecated. Please use <a href="ft2-base_interface.html#FT_Kerning_Mode">FT_KERNING_UNFITTED</a> instead.</p>
2876 </td></tr></table><br>
2877 </td></tr></table>
2878 <hr width="75%">
2879 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2880 <td width="100%"></td>
2881 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2882
2883 <table align=center width="75%"><tr><td>
2884 <h4><a name="ft_kerning_unscaled">ft_kerning_unscaled</a></h4>
2885 <table align=center width="87%"><tr><td>
2886 Defined in FT_FREETYPE_H (freetype/freetype.h).
2887 </td></tr></table><br>
2888 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2889
2890 #define <b>ft_kerning_unscaled</b>  <a href="ft2-base_interface.html#FT_Kerning_Mode">FT_KERNING_UNSCALED</a>
2891
2892 </pre></table><br>
2893 <table align=center width="87%"><tr><td>
2894 <p>This constant is deprecated. Please use <a href="ft2-base_interface.html#FT_Kerning_Mode">FT_KERNING_UNSCALED</a> instead.</p>
2895 </td></tr></table><br>
2896 </td></tr></table>
2897 <hr width="75%">
2898 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2899 <td width="100%"></td>
2900 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2901
2902 <table align=center width="75%"><tr><td>
2903 <h4><a name="FT_Get_Kerning">FT_Get_Kerning</a></h4>
2904 <table align=center width="87%"><tr><td>
2905 Defined in FT_FREETYPE_H (freetype/freetype.h).
2906 </td></tr></table><br>
2907 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2908
2909   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
2910   <b>FT_Get_Kerning</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>     face,
2911                   <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>     left_glyph,
2912                   <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>     right_glyph,
2913                   <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>     kern_mode,
2914                   <a href="ft2-basic_types.html#FT_Vector">FT_Vector</a>  *akerning );
2915
2916 </pre></table><br>
2917 <table align=center width="87%"><tr><td>
2918 <p>Return the kerning vector between two glyphs of a same face.</p>
2919 </td></tr></table><br>
2920 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
2921 <p></p>
2922 <table cellpadding=3 border=0>
2923 <tr valign=top><td><b>face</b></td><td>
2924 <p>A handle to a source face object.</p>
2925 </td></tr>
2926 <tr valign=top><td><b>left_glyph</b></td><td>
2927 <p>The index of the left glyph in the kern pair.</p>
2928 </td></tr>
2929 <tr valign=top><td><b>right_glyph</b></td><td>
2930 <p>The index of the right glyph in the kern pair.</p>
2931 </td></tr>
2932 <tr valign=top><td><b>kern_mode</b></td><td>
2933 <p>See <a href="ft2-base_interface.html#FT_Kerning_Mode">FT_Kerning_Mode</a> for more information. Determines the scale and dimension of the returned kerning vector.</p>
2934 </td></tr>
2935 </table>
2936 </td></tr></table>
2937 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
2938 <p></p>
2939 <table cellpadding=3 border=0>
2940 <tr valign=top><td><b>akerning</b></td><td>
2941 <p>The kerning vector. This is either in font units or in pixels (26.6 format) for scalable formats, and in pixels for fixed-sizes formats.</p>
2942 </td></tr>
2943 </table>
2944 </td></tr></table>
2945 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
2946 <p>FreeType error code. 0&nbsp;means success.</p>
2947 </td></tr></table>
2948 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
2949 <p>Only horizontal layouts (left-to-right &amp; right-to-left) are supported by this method. Other layouts, or more sophisticated kernings, are out of the scope of this API function -- they can be implemented through format-specific interfaces.</p>
2950 </td></tr></table>
2951 </td></tr></table>
2952 <hr width="75%">
2953 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2954 <td width="100%"></td>
2955 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2956
2957 <table align=center width="75%"><tr><td>
2958 <h4><a name="FT_Get_Track_Kerning">FT_Get_Track_Kerning</a></h4>
2959 <table align=center width="87%"><tr><td>
2960 Defined in FT_FREETYPE_H (freetype/freetype.h).
2961 </td></tr></table><br>
2962 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2963
2964   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
2965   <b>FT_Get_Track_Kerning</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>    face,
2966                         <a href="ft2-basic_types.html#FT_Fixed">FT_Fixed</a>   point_size,
2967                         <a href="ft2-basic_types.html#FT_Int">FT_Int</a>     degree,
2968                         <a href="ft2-basic_types.html#FT_Fixed">FT_Fixed</a>*  akerning );
2969
2970 </pre></table><br>
2971 <table align=center width="87%"><tr><td>
2972 <p>Return the track kerning for a given face object at a given size.</p>
2973 </td></tr></table><br>
2974 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
2975 <p></p>
2976 <table cellpadding=3 border=0>
2977 <tr valign=top><td><b>face</b></td><td>
2978 <p>A handle to a source face object.</p>
2979 </td></tr>
2980 <tr valign=top><td><b>point_size</b></td><td>
2981 <p>The point size in 16.16 fractional points.</p>
2982 </td></tr>
2983 <tr valign=top><td><b>degree</b></td><td>
2984 <p>The degree of tightness. Increasingly negative values represent tighter track kerning, while increasingly positive values represent looser track kerning. Value zero means no track kerning.</p>
2985 </td></tr>
2986 </table>
2987 </td></tr></table>
2988 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
2989 <p></p>
2990 <table cellpadding=3 border=0>
2991 <tr valign=top><td><b>akerning</b></td><td>
2992 <p>The kerning in 16.16 fractional points, to be uniformly applied between all glyphs.</p>
2993 </td></tr>
2994 </table>
2995 </td></tr></table>
2996 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
2997 <p>FreeType error code. 0&nbsp;means success.</p>
2998 </td></tr></table>
2999 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
3000 <p>Currently, only the Type&nbsp;1 font driver supports track kerning, using data from AFM files (if attached with <a href="ft2-base_interface.html#FT_Attach_File">FT_Attach_File</a> or <a href="ft2-base_interface.html#FT_Attach_Stream">FT_Attach_Stream</a>).</p>
3001 <p>Only very few AFM files come with track kerning data; please refer to the Adobe's AFM specification for more details.</p>
3002 </td></tr></table>
3003 </td></tr></table>
3004 <hr width="75%">
3005 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3006 <td width="100%"></td>
3007 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3008
3009 <table align=center width="75%"><tr><td>
3010 <h4><a name="FT_Get_Glyph_Name">FT_Get_Glyph_Name</a></h4>
3011 <table align=center width="87%"><tr><td>
3012 Defined in FT_FREETYPE_H (freetype/freetype.h).
3013 </td></tr></table><br>
3014 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
3015
3016   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
3017   <b>FT_Get_Glyph_Name</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>     face,
3018                      <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>     glyph_index,
3019                      <a href="ft2-basic_types.html#FT_Pointer">FT_Pointer</a>  buffer,
3020                      <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>     buffer_max );
3021
3022 </pre></table><br>
3023 <table align=center width="87%"><tr><td>
3024 <p>Retrieve the ASCII name of a given glyph in a face. This only works for those faces where <a href="ft2-base_interface.html#FT_HAS_GLYPH_NAMES">FT_HAS_GLYPH_NAMES</a>(face) returns&nbsp;1.</p>
3025 </td></tr></table><br>
3026 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
3027 <p></p>
3028 <table cellpadding=3 border=0>
3029 <tr valign=top><td><b>face</b></td><td>
3030 <p>A handle to a source face object.</p>
3031 </td></tr>
3032 <tr valign=top><td><b>glyph_index</b></td><td>
3033 <p>The glyph index.</p>
3034 </td></tr>
3035 <tr valign=top><td><b>buffer_max</b></td><td>
3036 <p>The maximal number of bytes available in the buffer.</p>
3037 </td></tr>
3038 </table>
3039 </td></tr></table>
3040 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
3041 <p></p>
3042 <table cellpadding=3 border=0>
3043 <tr valign=top><td><b>buffer</b></td><td>
3044 <p>A pointer to a target buffer where the name is copied to.</p>
3045 </td></tr>
3046 </table>
3047 </td></tr></table>
3048 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
3049 <p>FreeType error code. 0&nbsp;means success.</p>
3050 </td></tr></table>
3051 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
3052 <p>An error is returned if the face doesn't provide glyph names or if the glyph index is invalid. In all cases of failure, the first byte of &lsquo;buffer&rsquo; is set to&nbsp;0 to indicate an empty name.</p>
3053 <p>The glyph name is truncated to fit within the buffer if it is too long. The returned string is always zero-terminated.</p>
3054 <p>Be aware that FreeType reorders glyph indices internally so that glyph index&nbsp;0 always corresponds to the &lsquo;missing glyph&rsquo; (called &lsquo;.notdef&rsquo;).</p>
3055 <p>This function is not compiled within the library if the config macro &lsquo;FT_CONFIG_OPTION_NO_GLYPH_NAMES&rsquo; is defined in &lsquo;include/freetype/config/ftoptions.h&rsquo;.</p>
3056 </td></tr></table>
3057 </td></tr></table>
3058 <hr width="75%">
3059 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3060 <td width="100%"></td>
3061 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3062
3063 <table align=center width="75%"><tr><td>
3064 <h4><a name="FT_Get_Postscript_Name">FT_Get_Postscript_Name</a></h4>
3065 <table align=center width="87%"><tr><td>
3066 Defined in FT_FREETYPE_H (freetype/freetype.h).
3067 </td></tr></table><br>
3068 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
3069
3070   FT_EXPORT( <span class="keyword">const</span> <span class="keyword">char</span>* )
3071   <b>FT_Get_Postscript_Name</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>  face );
3072
3073 </pre></table><br>
3074 <table align=center width="87%"><tr><td>
3075 <p>Retrieve the ASCII PostScript name of a given face, if available. This only works with PostScript and TrueType fonts.</p>
3076 </td></tr></table><br>
3077 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
3078 <p></p>
3079 <table cellpadding=3 border=0>
3080 <tr valign=top><td><b>face</b></td><td>
3081 <p>A handle to the source face object.</p>
3082 </td></tr>
3083 </table>
3084 </td></tr></table>
3085 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
3086 <p>A pointer to the face's PostScript name. NULL if unavailable.</p>
3087 </td></tr></table>
3088 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
3089 <p>The returned pointer is owned by the face and is destroyed with it.</p>
3090 </td></tr></table>
3091 </td></tr></table>
3092 <hr width="75%">
3093 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3094 <td width="100%"></td>
3095 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3096
3097 <table align=center width="75%"><tr><td>
3098 <h4><a name="FT_Select_Charmap">FT_Select_Charmap</a></h4>
3099 <table align=center width="87%"><tr><td>
3100 Defined in FT_FREETYPE_H (freetype/freetype.h).
3101 </td></tr></table><br>
3102 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
3103
3104   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
3105   <b>FT_Select_Charmap</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>      face,
3106                      <a href="ft2-base_interface.html#FT_Encoding">FT_Encoding</a>  encoding );
3107
3108 </pre></table><br>
3109 <table align=center width="87%"><tr><td>
3110 <p>Select a given charmap by its encoding tag (as listed in &lsquo;freetype.h&rsquo;).</p>
3111 </td></tr></table><br>
3112 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
3113 <p></p>
3114 <table cellpadding=3 border=0>
3115 <tr valign=top><td><b>face</b></td><td>
3116 <p>A handle to the source face object.</p>
3117 </td></tr>
3118 </table>
3119 </td></tr></table>
3120 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
3121 <p></p>
3122 <table cellpadding=3 border=0>
3123 <tr valign=top><td><b>encoding</b></td><td>
3124 <p>A handle to the selected encoding.</p>
3125 </td></tr>
3126 </table>
3127 </td></tr></table>
3128 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
3129 <p>FreeType error code. 0&nbsp;means success.</p>
3130 </td></tr></table>
3131 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
3132 <p>This function returns an error if no charmap in the face corresponds to the encoding queried here.</p>
3133 <p>Because many fonts contain more than a single cmap for Unicode encoding, this function has some special code to select the one which covers Unicode best (&lsquo;best&rsquo; in the sense that a UCS-4 cmap is preferred to a UCS-2 cmap). It is thus preferable to <a href="ft2-base_interface.html#FT_Set_Charmap">FT_Set_Charmap</a> in this case.</p>
3134 </td></tr></table>
3135 </td></tr></table>
3136 <hr width="75%">
3137 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3138 <td width="100%"></td>
3139 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3140
3141 <table align=center width="75%"><tr><td>
3142 <h4><a name="FT_Set_Charmap">FT_Set_Charmap</a></h4>
3143 <table align=center width="87%"><tr><td>
3144 Defined in FT_FREETYPE_H (freetype/freetype.h).
3145 </td></tr></table><br>
3146 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
3147
3148   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
3149   <b>FT_Set_Charmap</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>     face,
3150                   <a href="ft2-base_interface.html#FT_CharMap">FT_CharMap</a>  charmap );
3151
3152 </pre></table><br>
3153 <table align=center width="87%"><tr><td>
3154 <p>Select a given charmap for character code to glyph index mapping.</p>
3155 </td></tr></table><br>
3156 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
3157 <p></p>
3158 <table cellpadding=3 border=0>
3159 <tr valign=top><td><b>face</b></td><td>
3160 <p>A handle to the source face object.</p>
3161 </td></tr>
3162 </table>
3163 </td></tr></table>
3164 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
3165 <p></p>
3166 <table cellpadding=3 border=0>
3167 <tr valign=top><td><b>charmap</b></td><td>
3168 <p>A handle to the selected charmap.</p>
3169 </td></tr>
3170 </table>
3171 </td></tr></table>
3172 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
3173 <p>FreeType error code. 0&nbsp;means success.</p>
3174 </td></tr></table>
3175 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
3176 <p>This function returns an error if the charmap is not part of the face (i.e., if it is not listed in the &lsquo;face-&gt;charmaps&rsquo; table).</p>
3177 <p>It also fails if a type&nbsp;14 charmap is selected.</p>
3178 </td></tr></table>
3179 </td></tr></table>
3180 <hr width="75%">
3181 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3182 <td width="100%"></td>
3183 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3184
3185 <table align=center width="75%"><tr><td>
3186 <h4><a name="FT_Get_Charmap_Index">FT_Get_Charmap_Index</a></h4>
3187 <table align=center width="87%"><tr><td>
3188 Defined in FT_FREETYPE_H (freetype/freetype.h).
3189 </td></tr></table><br>
3190 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
3191
3192   FT_EXPORT( <a href="ft2-basic_types.html#FT_Int">FT_Int</a> )
3193   <b>FT_Get_Charmap_Index</b>( <a href="ft2-base_interface.html#FT_CharMap">FT_CharMap</a>  charmap );
3194
3195 </pre></table><br>
3196 <table align=center width="87%"><tr><td>
3197 <p>Retrieve index of a given charmap.</p>
3198 </td></tr></table><br>
3199 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
3200 <p></p>
3201 <table cellpadding=3 border=0>
3202 <tr valign=top><td><b>charmap</b></td><td>
3203 <p>A handle to a charmap.</p>
3204 </td></tr>
3205 </table>
3206 </td></tr></table>
3207 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
3208 <p>The index into the array of character maps within the face to which &lsquo;charmap&rsquo; belongs. If an error occurs, -1 is returned.</p>
3209 </td></tr></table>
3210 </td></tr></table>
3211 <hr width="75%">
3212 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3213 <td width="100%"></td>
3214 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3215
3216 <table align=center width="75%"><tr><td>
3217 <h4><a name="FT_Get_Char_Index">FT_Get_Char_Index</a></h4>
3218 <table align=center width="87%"><tr><td>
3219 Defined in FT_FREETYPE_H (freetype/freetype.h).
3220 </td></tr></table><br>
3221 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
3222
3223   FT_EXPORT( <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a> )
3224   <b>FT_Get_Char_Index</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>   face,
3225                      <a href="ft2-basic_types.html#FT_ULong">FT_ULong</a>  charcode );
3226
3227 </pre></table><br>
3228 <table align=center width="87%"><tr><td>
3229 <p>Return the glyph index of a given character code. This function uses a charmap object to do the mapping.</p>
3230 </td></tr></table><br>
3231 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
3232 <p></p>
3233 <table cellpadding=3 border=0>
3234 <tr valign=top><td><b>face</b></td><td>
3235 <p>A handle to the source face object.</p>
3236 </td></tr>
3237 <tr valign=top><td><b>charcode</b></td><td>
3238 <p>The character code.</p>
3239 </td></tr>
3240 </table>
3241 </td></tr></table>
3242 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
3243 <p>The glyph index. 0&nbsp;means &lsquo;undefined character code&rsquo;.</p>
3244 </td></tr></table>
3245 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
3246 <p>If you use FreeType to manipulate the contents of font files directly, be aware that the glyph index returned by this function doesn't always correspond to the internal indices used within the file. This is done to ensure that value&nbsp;0 always corresponds to the &lsquo;missing glyph&rsquo;.</p>
3247 </td></tr></table>
3248 </td></tr></table>
3249 <hr width="75%">
3250 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3251 <td width="100%"></td>
3252 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3253
3254 <table align=center width="75%"><tr><td>
3255 <h4><a name="FT_Get_First_Char">FT_Get_First_Char</a></h4>
3256 <table align=center width="87%"><tr><td>
3257 Defined in FT_FREETYPE_H (freetype/freetype.h).
3258 </td></tr></table><br>
3259 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
3260
3261   FT_EXPORT( <a href="ft2-basic_types.html#FT_ULong">FT_ULong</a> )
3262   <b>FT_Get_First_Char</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>   face,
3263                      <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>  *agindex );
3264
3265 </pre></table><br>
3266 <table align=center width="87%"><tr><td>
3267 <p>This function is used to return the first character code in the current charmap of a given face. It also returns the corresponding glyph index.</p>
3268 </td></tr></table><br>
3269 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
3270 <p></p>
3271 <table cellpadding=3 border=0>
3272 <tr valign=top><td><b>face</b></td><td>
3273 <p>A handle to the source face object.</p>
3274 </td></tr>
3275 </table>
3276 </td></tr></table>
3277 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
3278 <p></p>
3279 <table cellpadding=3 border=0>
3280 <tr valign=top><td><b>agindex</b></td><td>
3281 <p>Glyph index of first character code. 0&nbsp;if charmap is empty.</p>
3282 </td></tr>
3283 </table>
3284 </td></tr></table>
3285 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
3286 <p>The charmap's first character code.</p>
3287 </td></tr></table>
3288 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
3289 <p>You should use this function with <a href="ft2-base_interface.html#FT_Get_Next_Char">FT_Get_Next_Char</a> to be able to parse all character codes available in a given charmap. The code should look like this:</p>
3290 <pre class="colored">
3291   FT_ULong  charcode;                                              
3292   FT_UInt   gindex;                                                
3293                                                                    
3294                                                                    
3295   charcode = FT_Get_First_Char( face, &amp;gindex );                   
3296   while ( gindex != 0 )                                            
3297   {                                                                
3298     ... do something with (charcode,gindex) pair ...               
3299                                                                    
3300     charcode = FT_Get_Next_Char( face, charcode, &amp;gindex );        
3301   }                                                                
3302 </pre>
3303 <p>Note that &lsquo;*agindex&rsquo; is set to&nbsp;0 if the charmap is empty. The result itself can be&nbsp;0 in two cases: if the charmap is empty or if the value&nbsp;0 is the first valid character code.</p>
3304 </td></tr></table>
3305 </td></tr></table>
3306 <hr width="75%">
3307 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3308 <td width="100%"></td>
3309 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3310
3311 <table align=center width="75%"><tr><td>
3312 <h4><a name="FT_Get_Next_Char">FT_Get_Next_Char</a></h4>
3313 <table align=center width="87%"><tr><td>
3314 Defined in FT_FREETYPE_H (freetype/freetype.h).
3315 </td></tr></table><br>
3316 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
3317
3318   FT_EXPORT( <a href="ft2-basic_types.html#FT_ULong">FT_ULong</a> )
3319   <b>FT_Get_Next_Char</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>    face,
3320                     <a href="ft2-basic_types.html#FT_ULong">FT_ULong</a>   char_code,
3321                     <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>   *agindex );
3322
3323 </pre></table><br>
3324 <table align=center width="87%"><tr><td>
3325 <p>This function is used to return the next character code in the current charmap of a given face following the value &lsquo;char_code&rsquo;, as well as the corresponding glyph index.</p>
3326 </td></tr></table><br>
3327 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
3328 <p></p>
3329 <table cellpadding=3 border=0>
3330 <tr valign=top><td><b>face</b></td><td>
3331 <p>A handle to the source face object.</p>
3332 </td></tr>
3333 <tr valign=top><td><b>char_code</b></td><td>
3334 <p>The starting character code.</p>
3335 </td></tr>
3336 </table>
3337 </td></tr></table>
3338 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
3339 <p></p>
3340 <table cellpadding=3 border=0>
3341 <tr valign=top><td><b>agindex</b></td><td>
3342 <p>Glyph index of next character code. 0&nbsp;if charmap is empty.</p>
3343 </td></tr>
3344 </table>
3345 </td></tr></table>
3346 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
3347 <p>The charmap's next character code.</p>
3348 </td></tr></table>
3349 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
3350 <p>You should use this function with <a href="ft2-base_interface.html#FT_Get_First_Char">FT_Get_First_Char</a> to walk over all character codes available in a given charmap. See the note for this function for a simple code example.</p>
3351 <p>Note that &lsquo;*agindex&rsquo; is set to&nbsp;0 when there are no more codes in the charmap.</p>
3352 </td></tr></table>
3353 </td></tr></table>
3354 <hr width="75%">
3355 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3356 <td width="100%"></td>
3357 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3358
3359 <table align=center width="75%"><tr><td>
3360 <h4><a name="FT_Get_Name_Index">FT_Get_Name_Index</a></h4>
3361 <table align=center width="87%"><tr><td>
3362 Defined in FT_FREETYPE_H (freetype/freetype.h).
3363 </td></tr></table><br>
3364 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
3365
3366   FT_EXPORT( <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a> )
3367   <b>FT_Get_Name_Index</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>     face,
3368                      <a href="ft2-basic_types.html#FT_String">FT_String</a>*  glyph_name );
3369
3370 </pre></table><br>
3371 <table align=center width="87%"><tr><td>
3372 <p>Return the glyph index of a given glyph name. This function uses driver specific objects to do the translation.</p>
3373 </td></tr></table><br>
3374 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
3375 <p></p>
3376 <table cellpadding=3 border=0>
3377 <tr valign=top><td><b>face</b></td><td>
3378 <p>A handle to the source face object.</p>
3379 </td></tr>
3380 <tr valign=top><td><b>glyph_name</b></td><td>
3381 <p>The glyph name.</p>
3382 </td></tr>
3383 </table>
3384 </td></tr></table>
3385 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
3386 <p>The glyph index. 0&nbsp;means &lsquo;undefined character code&rsquo;.</p>
3387 </td></tr></table>
3388 </td></tr></table>
3389 <hr width="75%">
3390 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3391 <td width="100%"></td>
3392 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3393
3394 <table align=center width="75%"><tr><td>
3395 <h4><a name="FT_SUBGLYPH_FLAG_XXX">FT_SUBGLYPH_FLAG_XXX</a></h4>
3396 <table align=center width="87%"><tr><td>
3397 Defined in FT_FREETYPE_H (freetype/freetype.h).
3398 </td></tr></table><br>
3399 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
3400
3401 #define <a href="ft2-base_interface.html#FT_SUBGLYPH_FLAG_XXX">FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS</a>          1
3402 #define <a href="ft2-base_interface.html#FT_SUBGLYPH_FLAG_XXX">FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES</a>      2
3403 #define <a href="ft2-base_interface.html#FT_SUBGLYPH_FLAG_XXX">FT_SUBGLYPH_FLAG_ROUND_XY_TO_GRID</a>        4
3404 #define <a href="ft2-base_interface.html#FT_SUBGLYPH_FLAG_XXX">FT_SUBGLYPH_FLAG_SCALE</a>                   8
3405 #define <a href="ft2-base_interface.html#FT_SUBGLYPH_FLAG_XXX">FT_SUBGLYPH_FLAG_XY_SCALE</a>             0x40
3406 #define <a href="ft2-base_interface.html#FT_SUBGLYPH_FLAG_XXX">FT_SUBGLYPH_FLAG_2X2</a>                  0x80
3407 #define <a href="ft2-base_interface.html#FT_SUBGLYPH_FLAG_XXX">FT_SUBGLYPH_FLAG_USE_MY_METRICS</a>      0x200
3408
3409 </pre></table><br>
3410 <table align=center width="87%"><tr><td>
3411 <p>A list of constants used to describe subglyphs. Please refer to the TrueType specification for the meaning of the various flags.</p>
3412 </td></tr></table><br>
3413 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td>
3414 <p></p>
3415 <table cellpadding=3 border=0>
3416 <tr valign=top><td colspan=0><b>FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS</b></td></tr>
3417 <tr valign=top><td></td><td>
3418 <p></p>
3419 </td></tr>
3420 <tr valign=top><td colspan=0><b>FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES</b></td></tr>
3421 <tr valign=top><td></td><td>
3422 <p></p>
3423 </td></tr>
3424 <tr valign=top><td colspan=0><b>FT_SUBGLYPH_FLAG_ROUND_XY_TO_GRID</b></td></tr>
3425 <tr valign=top><td></td><td>
3426 <p></p>
3427 </td></tr>
3428 <tr valign=top><td><b>FT_SUBGLYPH_FLAG_SCALE</b></td><td>
3429 <p></p>
3430 </td></tr>
3431 <tr valign=top><td colspan=0><b>FT_SUBGLYPH_FLAG_XY_SCALE</b></td></tr>
3432 <tr valign=top><td></td><td>
3433 <p></p>
3434 </td></tr>
3435 <tr valign=top><td><b>FT_SUBGLYPH_FLAG_2X2</b></td><td>
3436 <p></p>
3437 </td></tr>
3438 <tr valign=top><td colspan=0><b>FT_SUBGLYPH_FLAG_USE_MY_METRICS</b></td></tr>
3439 <tr valign=top><td></td><td>
3440 <p></p>
3441 </td></tr>
3442 </table>
3443 </td></tr></table>
3444 </td></tr></table>
3445 <hr width="75%">
3446 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3447 <td width="100%"></td>
3448 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3449
3450 <table align=center width="75%"><tr><td>
3451 <h4><a name="FT_Get_SubGlyph_Info">FT_Get_SubGlyph_Info</a></h4>
3452 <table align=center width="87%"><tr><td>
3453 Defined in FT_FREETYPE_H (freetype/freetype.h).
3454 </td></tr></table><br>
3455 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
3456
3457   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
3458   <b>FT_Get_SubGlyph_Info</b>( <a href="ft2-base_interface.html#FT_GlyphSlot">FT_GlyphSlot</a>  glyph,
3459                         <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>       sub_index,
3460                         <a href="ft2-basic_types.html#FT_Int">FT_Int</a>       *p_index,
3461                         <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>      *p_flags,
3462                         <a href="ft2-basic_types.html#FT_Int">FT_Int</a>       *p_arg1,
3463                         <a href="ft2-basic_types.html#FT_Int">FT_Int</a>       *p_arg2,
3464                         <a href="ft2-basic_types.html#FT_Matrix">FT_Matrix</a>    *p_transform );
3465
3466 </pre></table><br>
3467 <table align=center width="87%"><tr><td>
3468 <p>Retrieve a description of a given subglyph. Only use it if &lsquo;glyph-&gt;format&rsquo; is <a href="ft2-basic_types.html#FT_Glyph_Format">FT_GLYPH_FORMAT_COMPOSITE</a>; an error is returned otherwise.</p>
3469 </td></tr></table><br>
3470 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
3471 <p></p>
3472 <table cellpadding=3 border=0>
3473 <tr valign=top><td><b>glyph</b></td><td>
3474 <p>The source glyph slot.</p>
3475 </td></tr>
3476 <tr valign=top><td><b>sub_index</b></td><td>
3477 <p>The index of the subglyph. Must be less than &lsquo;glyph-&gt;num_subglyphs&rsquo;.</p>
3478 </td></tr>
3479 </table>
3480 </td></tr></table>
3481 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
3482 <p></p>
3483 <table cellpadding=3 border=0>
3484 <tr valign=top><td><b>p_index</b></td><td>
3485 <p>The glyph index of the subglyph.</p>
3486 </td></tr>
3487 <tr valign=top><td><b>p_flags</b></td><td>
3488 <p>The subglyph flags, see <a href="ft2-base_interface.html#FT_SUBGLYPH_FLAG_XXX">FT_SUBGLYPH_FLAG_XXX</a>.</p>
3489 </td></tr>
3490 <tr valign=top><td><b>p_arg1</b></td><td>
3491 <p>The subglyph's first argument (if any).</p>
3492 </td></tr>
3493 <tr valign=top><td><b>p_arg2</b></td><td>
3494 <p>The subglyph's second argument (if any).</p>
3495 </td></tr>
3496 <tr valign=top><td><b>p_transform</b></td><td>
3497 <p>The subglyph transformation (if any).</p>
3498 </td></tr>
3499 </table>
3500 </td></tr></table>
3501 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
3502 <p>FreeType error code. 0&nbsp;means success.</p>
3503 </td></tr></table>
3504 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
3505 <p>The values of &lsquo;*p_arg1&rsquo;, &lsquo;*p_arg2&rsquo;, and &lsquo;*p_transform&rsquo; must be interpreted depending on the flags returned in &lsquo;*p_flags&rsquo;. See the TrueType specification for details.</p>
3506 </td></tr></table>
3507 </td></tr></table>
3508 <hr width="75%">
3509 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3510 <td width="100%"></td>
3511 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3512
3513 <table align=center width="75%"><tr><td>
3514 <h4><a name="FT_FSTYPE_XXX">FT_FSTYPE_XXX</a></h4>
3515 <table align=center width="87%"><tr><td>
3516 Defined in FT_FREETYPE_H (freetype/freetype.h).
3517 </td></tr></table><br>
3518 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
3519
3520 #define <a href="ft2-base_interface.html#FT_FSTYPE_XXX">FT_FSTYPE_INSTALLABLE_EMBEDDING</a>         0x0000
3521 #define <a href="ft2-base_interface.html#FT_FSTYPE_XXX">FT_FSTYPE_RESTRICTED_LICENSE_EMBEDDING</a>  0x0002
3522 #define <a href="ft2-base_interface.html#FT_FSTYPE_XXX">FT_FSTYPE_PREVIEW_AND_PRINT_EMBEDDING</a>   0x0004
3523 #define <a href="ft2-base_interface.html#FT_FSTYPE_XXX">FT_FSTYPE_EDITABLE_EMBEDDING</a>            0x0008
3524 #define <a href="ft2-base_interface.html#FT_FSTYPE_XXX">FT_FSTYPE_NO_SUBSETTING</a>                 0x0100
3525 #define <a href="ft2-base_interface.html#FT_FSTYPE_XXX">FT_FSTYPE_BITMAP_EMBEDDING_ONLY</a>         0x0200
3526
3527 </pre></table><br>
3528 <table align=center width="87%"><tr><td>
3529 <p>A list of bit flags used in the &lsquo;fsType&rsquo; field of the OS/2 table in a TrueType or OpenType font and the &lsquo;FSType&rsquo; entry in a PostScript font. These bit flags are returned by <a href="ft2-base_interface.html#FT_Get_FSType_Flags">FT_Get_FSType_Flags</a>; they inform client applications of embedding and subsetting restrictions associated with a font.</p>
3530 <p>See http://www.adobe.com/devnet/acrobat/pdfs/FontPolicies.pdf for more details.</p>
3531 </td></tr></table><br>
3532 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td>
3533 <p></p>
3534 <table cellpadding=3 border=0>
3535 <tr valign=top><td colspan=0><b>FT_FSTYPE_INSTALLABLE_EMBEDDING</b></td></tr>
3536 <tr valign=top><td></td><td>
3537 <p>Fonts with no fsType bit set may be embedded and permanently installed on the remote system by an application.</p>
3538 </td></tr>
3539 <tr valign=top><td colspan=0><b>FT_FSTYPE_RESTRICTED_LICENSE_EMBEDDING</b></td></tr>
3540 <tr valign=top><td></td><td>
3541 <p>Fonts that have only this bit set must not be modified, embedded or exchanged in any manner without first obtaining permission of the font software copyright owner.</p>
3542 </td></tr>
3543 <tr valign=top><td colspan=0><b>FT_FSTYPE_PREVIEW_AND_PRINT_EMBEDDING</b></td></tr>
3544 <tr valign=top><td></td><td>
3545 <p>If this bit is set, the font may be embedded and temporarily loaded on the remote system. Documents containing Preview &amp; Print fonts must be opened &lsquo;read-only&rsquo;; no edits can be applied to the document.</p>
3546 </td></tr>
3547 <tr valign=top><td colspan=0><b>FT_FSTYPE_EDITABLE_EMBEDDING</b></td></tr>
3548 <tr valign=top><td></td><td>
3549 <p>If this bit is set, the font may be embedded but must only be installed temporarily on other systems. In contrast to Preview &amp; Print fonts, documents containing editable fonts may be opened for reading, editing is permitted, and changes may be saved.</p>
3550 </td></tr>
3551 <tr valign=top><td colspan=0><b>FT_FSTYPE_NO_SUBSETTING</b></td></tr>
3552 <tr valign=top><td></td><td>
3553 <p>If this bit is set, the font may not be subsetted prior to embedding.</p>
3554 </td></tr>
3555 <tr valign=top><td colspan=0><b>FT_FSTYPE_BITMAP_EMBEDDING_ONLY</b></td></tr>
3556 <tr valign=top><td></td><td>
3557 <p>If this bit is set, only bitmaps contained in the font may be embedded; no outline data may be embedded. If there are no bitmaps available in the font, then the font is unembeddable.</p>
3558 </td></tr>
3559 </table>
3560 </td></tr></table>
3561 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
3562 <p>While the fsType flags can indicate that a font may be embedded, a license with the font vendor may be separately required to use the font in this way.</p>
3563 </td></tr></table>
3564 </td></tr></table>
3565 <hr width="75%">
3566 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3567 <td width="100%"></td>
3568 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3569
3570 <table align=center width="75%"><tr><td>
3571 <h4><a name="FT_Get_FSType_Flags">FT_Get_FSType_Flags</a></h4>
3572 <table align=center width="87%"><tr><td>
3573 Defined in FT_FREETYPE_H (freetype/freetype.h).
3574 </td></tr></table><br>
3575 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
3576
3577   FT_EXPORT( <a href="ft2-basic_types.html#FT_UShort">FT_UShort</a> )
3578   <b>FT_Get_FSType_Flags</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>  face );
3579
3580 </pre></table><br>
3581 <table align=center width="87%"><tr><td>
3582 <p>Return the fsType flags for a font.</p>
3583 </td></tr></table><br>
3584 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
3585 <p></p>
3586 <table cellpadding=3 border=0>
3587 <tr valign=top><td><b>face</b></td><td>
3588 <p>A handle to the source face object.</p>
3589 </td></tr>
3590 </table>
3591 </td></tr></table>
3592 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
3593 <p>The fsType flags, <a href="ft2-base_interface.html#FT_FSTYPE_XXX">FT_FSTYPE_XXX</a>.</p>
3594 </td></tr></table>
3595 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
3596 <p>Use this function rather than directly reading the &lsquo;fs_type&rsquo; field in the <a href="ft2-type1_tables.html#PS_FontInfoRec">PS_FontInfoRec</a> structure which is only guaranteed to return the correct results for Type&nbsp;1 fonts.</p>
3597 </td></tr></table>
3598 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>since</b></em></td></tr><tr><td>
3599 <p>2.3.8</p>
3600 </td></tr></table>
3601 </td></tr></table>
3602 <hr width="75%">
3603 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3604 <td width="100%"></td>
3605 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3606
3607 </body>
3608 </html>