311420629aea32a7790c74484f3ff189f02d8902
[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.3 API Reference</title>
7 <style type="text/css">
8   body { font-family: Verdana, Geneva, Arial, Helvetica, serif;
9          color: #000000;
10          background: #FFFFFF; }
11
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.3 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.</p>
386 </td></tr>
387 <tr valign=top><td><b>vertAdvance</b></td><td>
388 <p>Advance height for vertical layout.</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;
697     <span class="keyword">void</span>*             extensions;
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 FT_LOAD_NO_HINTING 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 six 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 </td></tr></table>
1511 </td></tr></table>
1512 <hr width="75%">
1513 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1514 <td width="100%"></td>
1515 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1516
1517 <table align=center width="75%"><tr><td>
1518 <h4><a name="FT_Done_FreeType">FT_Done_FreeType</a></h4>
1519 <table align=center width="87%"><tr><td>
1520 Defined in FT_FREETYPE_H (freetype/freetype.h).
1521 </td></tr></table><br>
1522 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1523
1524   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
1525   <b>FT_Done_FreeType</b>( <a href="ft2-base_interface.html#FT_Library">FT_Library</a>  library );
1526
1527 </pre></table><br>
1528 <table align=center width="87%"><tr><td>
1529 <p>Destroy a given FreeType library object and all of its children, including resources, drivers, faces, sizes, etc.</p>
1530 </td></tr></table><br>
1531 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
1532 <p></p>
1533 <table cellpadding=3 border=0>
1534 <tr valign=top><td><b>library</b></td><td>
1535 <p>A handle to the target library object.</p>
1536 </td></tr>
1537 </table>
1538 </td></tr></table>
1539 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
1540 <p>FreeType error code. 0&nbsp;means success.</p>
1541 </td></tr></table>
1542 </td></tr></table>
1543 <hr width="75%">
1544 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1545 <td width="100%"></td>
1546 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1547
1548 <table align=center width="75%"><tr><td>
1549 <h4><a name="FT_OPEN_XXX">FT_OPEN_XXX</a></h4>
1550 <table align=center width="87%"><tr><td>
1551 Defined in FT_FREETYPE_H (freetype/freetype.h).
1552 </td></tr></table><br>
1553 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1554
1555 #define <a href="ft2-base_interface.html#FT_OPEN_XXX">FT_OPEN_MEMORY</a>    0x1
1556 #define <a href="ft2-base_interface.html#FT_OPEN_XXX">FT_OPEN_STREAM</a>    0x2
1557 #define <a href="ft2-base_interface.html#FT_OPEN_XXX">FT_OPEN_PATHNAME</a>  0x4
1558 #define <a href="ft2-base_interface.html#FT_OPEN_XXX">FT_OPEN_DRIVER</a>    0x8
1559 #define <a href="ft2-base_interface.html#FT_OPEN_XXX">FT_OPEN_PARAMS</a>    0x10
1560
1561 #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 */
1562 #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 */
1563 #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 */
1564 #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 */
1565 #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 */
1566
1567 </pre></table><br>
1568 <table align=center width="87%"><tr><td>
1569 <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>
1570 </td></tr></table><br>
1571 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td>
1572 <p></p>
1573 <table cellpadding=3 border=0>
1574 <tr valign=top><td><b>FT_OPEN_MEMORY</b></td><td>
1575 <p>This is a memory-based stream.</p>
1576 </td></tr>
1577 <tr valign=top><td><b>FT_OPEN_STREAM</b></td><td>
1578 <p>Copy the stream from the &lsquo;stream&rsquo; field.</p>
1579 </td></tr>
1580 <tr valign=top><td><b>FT_OPEN_PATHNAME</b></td><td>
1581 <p>Create a new input stream from a C&nbsp;path name.</p>
1582 </td></tr>
1583 <tr valign=top><td><b>FT_OPEN_DRIVER</b></td><td>
1584 <p>Use the &lsquo;driver&rsquo; field.</p>
1585 </td></tr>
1586 <tr valign=top><td><b>FT_OPEN_PARAMS</b></td><td>
1587 <p>Use the &lsquo;num_params&rsquo; and &lsquo;params&rsquo; fields.</p>
1588 </td></tr>
1589 <tr valign=top><td><b>ft_open_memory</b></td><td>
1590 <p>Deprecated; use <a href="ft2-base_interface.html#FT_OPEN_XXX">FT_OPEN_MEMORY</a> instead.</p>
1591 </td></tr>
1592 <tr valign=top><td><b>ft_open_stream</b></td><td>
1593 <p>Deprecated; use <a href="ft2-base_interface.html#FT_OPEN_XXX">FT_OPEN_STREAM</a> instead.</p>
1594 </td></tr>
1595 <tr valign=top><td><b>ft_open_pathname</b></td><td>
1596 <p>Deprecated; use <a href="ft2-base_interface.html#FT_OPEN_XXX">FT_OPEN_PATHNAME</a> instead.</p>
1597 </td></tr>
1598 <tr valign=top><td><b>ft_open_driver</b></td><td>
1599 <p>Deprecated; use <a href="ft2-base_interface.html#FT_OPEN_XXX">FT_OPEN_DRIVER</a> instead.</p>
1600 </td></tr>
1601 <tr valign=top><td><b>ft_open_params</b></td><td>
1602 <p>Deprecated; use <a href="ft2-base_interface.html#FT_OPEN_XXX">FT_OPEN_PARAMS</a> instead.</p>
1603 </td></tr>
1604 </table>
1605 </td></tr></table>
1606 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
1607 <p>The &lsquo;FT_OPEN_MEMORY&rsquo;, &lsquo;FT_OPEN_STREAM&rsquo;, and &lsquo;FT_OPEN_PATHNAME&rsquo; flags are mutually exclusive.</p>
1608 </td></tr></table>
1609 </td></tr></table>
1610 <hr width="75%">
1611 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1612 <td width="100%"></td>
1613 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1614
1615 <table align=center width="75%"><tr><td>
1616 <h4><a name="FT_Parameter">FT_Parameter</a></h4>
1617 <table align=center width="87%"><tr><td>
1618 Defined in FT_FREETYPE_H (freetype/freetype.h).
1619 </td></tr></table><br>
1620 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1621
1622   <span class="keyword">typedef</span> <span class="keyword">struct</span>  FT_Parameter_
1623   {
1624     <a href="ft2-basic_types.html#FT_ULong">FT_ULong</a>    tag;
1625     <a href="ft2-basic_types.html#FT_Pointer">FT_Pointer</a>  data;
1626
1627   } <b>FT_Parameter</b>;
1628
1629 </pre></table><br>
1630 <table align=center width="87%"><tr><td>
1631 <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>
1632 </td></tr></table><br>
1633 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>fields</b></em></td></tr><tr><td>
1634 <p></p>
1635 <table cellpadding=3 border=0>
1636 <tr valign=top><td><b>tag</b></td><td>
1637 <p>A four-byte identification tag.</p>
1638 </td></tr>
1639 <tr valign=top><td><b>data</b></td><td>
1640 <p>A pointer to the parameter data.</p>
1641 </td></tr>
1642 </table>
1643 </td></tr></table>
1644 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
1645 <p>The ID and function of parameters are driver-specific. See the various FT_PARAM_TAG_XXX flags for more information.</p>
1646 </td></tr></table>
1647 </td></tr></table>
1648 <hr width="75%">
1649 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1650 <td width="100%"></td>
1651 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1652
1653 <table align=center width="75%"><tr><td>
1654 <h4><a name="FT_Open_Args">FT_Open_Args</a></h4>
1655 <table align=center width="87%"><tr><td>
1656 Defined in FT_FREETYPE_H (freetype/freetype.h).
1657 </td></tr></table><br>
1658 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1659
1660   <span class="keyword">typedef</span> <span class="keyword">struct</span>  FT_Open_Args_
1661   {
1662     <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>         flags;
1663     <span class="keyword">const</span> <a href="ft2-basic_types.html#FT_Byte">FT_Byte</a>*  memory_base;
1664     <a href="ft2-basic_types.html#FT_Long">FT_Long</a>         memory_size;
1665     <a href="ft2-basic_types.html#FT_String">FT_String</a>*      pathname;
1666     <a href="ft2-system_interface.html#FT_Stream">FT_Stream</a>       stream;
1667     <a href="ft2-base_interface.html#FT_Module">FT_Module</a>       driver;
1668     <a href="ft2-basic_types.html#FT_Int">FT_Int</a>          num_params;
1669     <a href="ft2-base_interface.html#FT_Parameter">FT_Parameter</a>*   params;
1670
1671   } <b>FT_Open_Args</b>;
1672
1673 </pre></table><br>
1674 <table align=center width="87%"><tr><td>
1675 <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>
1676 </td></tr></table><br>
1677 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>fields</b></em></td></tr><tr><td>
1678 <p></p>
1679 <table cellpadding=3 border=0>
1680 <tr valign=top><td><b>flags</b></td><td>
1681 <p>A set of bit flags indicating how to use the structure.</p>
1682 </td></tr>
1683 <tr valign=top><td><b>memory_base</b></td><td>
1684 <p>The first byte of the file in memory.</p>
1685 </td></tr>
1686 <tr valign=top><td><b>memory_size</b></td><td>
1687 <p>The size in bytes of the file in memory.</p>
1688 </td></tr>
1689 <tr valign=top><td><b>pathname</b></td><td>
1690 <p>A pointer to an 8-bit file pathname.</p>
1691 </td></tr>
1692 <tr valign=top><td><b>stream</b></td><td>
1693 <p>A handle to a source stream object.</p>
1694 </td></tr>
1695 <tr valign=top><td><b>driver</b></td><td>
1696 <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>
1697 </td></tr>
1698 <tr valign=top><td><b>num_params</b></td><td>
1699 <p>The number of extra parameters.</p>
1700 </td></tr>
1701 <tr valign=top><td><b>params</b></td><td>
1702 <p>Extra parameters passed to the font driver when opening a new face.</p>
1703 </td></tr>
1704 </table>
1705 </td></tr></table>
1706 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
1707 <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>
1708 <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>
1709 <p>Otherwise, if the &lsquo;FT_OPEN_STREAM&rsquo; bit is set, assume that a custom input stream &lsquo;stream&rsquo; is used.</p>
1710 <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>
1711 <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>
1712 <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>
1713 <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>
1714 </td></tr></table>
1715 </td></tr></table>
1716 <hr width="75%">
1717 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1718 <td width="100%"></td>
1719 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1720
1721 <table align=center width="75%"><tr><td>
1722 <h4><a name="FT_New_Face">FT_New_Face</a></h4>
1723 <table align=center width="87%"><tr><td>
1724 Defined in FT_FREETYPE_H (freetype/freetype.h).
1725 </td></tr></table><br>
1726 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1727
1728   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
1729   <b>FT_New_Face</b>( <a href="ft2-base_interface.html#FT_Library">FT_Library</a>   library,
1730                <span class="keyword">const</span> <span class="keyword">char</span>*  filepathname,
1731                <a href="ft2-basic_types.html#FT_Long">FT_Long</a>      face_index,
1732                <a href="ft2-base_interface.html#FT_Face">FT_Face</a>     *aface );
1733
1734 </pre></table><br>
1735 <table align=center width="87%"><tr><td>
1736 <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>
1737 </td></tr></table><br>
1738 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
1739 <p></p>
1740 <table cellpadding=3 border=0>
1741 <tr valign=top><td><b>library</b></td><td>
1742 <p>A handle to the library resource.</p>
1743 </td></tr>
1744 </table>
1745 </td></tr></table>
1746 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
1747 <p></p>
1748 <table cellpadding=3 border=0>
1749 <tr valign=top><td><b>pathname</b></td><td>
1750 <p>A path to the font file.</p>
1751 </td></tr>
1752 <tr valign=top><td><b>face_index</b></td><td>
1753 <p>The index of the face within the font. The first face has index&nbsp;0.</p>
1754 </td></tr>
1755 </table>
1756 </td></tr></table>
1757 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
1758 <p></p>
1759 <table cellpadding=3 border=0>
1760 <tr valign=top><td><b>aface</b></td><td>
1761 <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>
1762 </td></tr>
1763 </table>
1764 </td></tr></table>
1765 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
1766 <p>FreeType error code. 0&nbsp;means success.</p>
1767 </td></tr></table>
1768 </td></tr></table>
1769 <hr width="75%">
1770 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1771 <td width="100%"></td>
1772 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1773
1774 <table align=center width="75%"><tr><td>
1775 <h4><a name="FT_New_Memory_Face">FT_New_Memory_Face</a></h4>
1776 <table align=center width="87%"><tr><td>
1777 Defined in FT_FREETYPE_H (freetype/freetype.h).
1778 </td></tr></table><br>
1779 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1780
1781   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
1782   <b>FT_New_Memory_Face</b>( <a href="ft2-base_interface.html#FT_Library">FT_Library</a>      library,
1783                       <span class="keyword">const</span> <a href="ft2-basic_types.html#FT_Byte">FT_Byte</a>*  file_base,
1784                       <a href="ft2-basic_types.html#FT_Long">FT_Long</a>         file_size,
1785                       <a href="ft2-basic_types.html#FT_Long">FT_Long</a>         face_index,
1786                       <a href="ft2-base_interface.html#FT_Face">FT_Face</a>        *aface );
1787
1788 </pre></table><br>
1789 <table align=center width="87%"><tr><td>
1790 <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>
1791 </td></tr></table><br>
1792 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
1793 <p></p>
1794 <table cellpadding=3 border=0>
1795 <tr valign=top><td><b>library</b></td><td>
1796 <p>A handle to the library resource.</p>
1797 </td></tr>
1798 </table>
1799 </td></tr></table>
1800 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
1801 <p></p>
1802 <table cellpadding=3 border=0>
1803 <tr valign=top><td><b>file_base</b></td><td>
1804 <p>A pointer to the beginning of the font data.</p>
1805 </td></tr>
1806 <tr valign=top><td><b>file_size</b></td><td>
1807 <p>The size of the memory chunk used by the font data.</p>
1808 </td></tr>
1809 <tr valign=top><td><b>face_index</b></td><td>
1810 <p>The index of the face within the font. The first face has index&nbsp;0.</p>
1811 </td></tr>
1812 </table>
1813 </td></tr></table>
1814 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
1815 <p></p>
1816 <table cellpadding=3 border=0>
1817 <tr valign=top><td><b>aface</b></td><td>
1818 <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>
1819 </td></tr>
1820 </table>
1821 </td></tr></table>
1822 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
1823 <p>FreeType error code. 0&nbsp;means success.</p>
1824 </td></tr></table>
1825 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
1826 <p>You must not deallocate the memory before calling <a href="ft2-base_interface.html#FT_Done_Face">FT_Done_Face</a>.</p>
1827 </td></tr></table>
1828 </td></tr></table>
1829 <hr width="75%">
1830 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1831 <td width="100%"></td>
1832 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1833
1834 <table align=center width="75%"><tr><td>
1835 <h4><a name="FT_Open_Face">FT_Open_Face</a></h4>
1836 <table align=center width="87%"><tr><td>
1837 Defined in FT_FREETYPE_H (freetype/freetype.h).
1838 </td></tr></table><br>
1839 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1840
1841   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
1842   <b>FT_Open_Face</b>( <a href="ft2-base_interface.html#FT_Library">FT_Library</a>           library,
1843                 <span class="keyword">const</span> <a href="ft2-base_interface.html#FT_Open_Args">FT_Open_Args</a>*  args,
1844                 <a href="ft2-basic_types.html#FT_Long">FT_Long</a>              face_index,
1845                 <a href="ft2-base_interface.html#FT_Face">FT_Face</a>             *aface );
1846
1847 </pre></table><br>
1848 <table align=center width="87%"><tr><td>
1849 <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>
1850 </td></tr></table><br>
1851 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
1852 <p></p>
1853 <table cellpadding=3 border=0>
1854 <tr valign=top><td><b>library</b></td><td>
1855 <p>A handle to the library resource.</p>
1856 </td></tr>
1857 </table>
1858 </td></tr></table>
1859 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
1860 <p></p>
1861 <table cellpadding=3 border=0>
1862 <tr valign=top><td><b>args</b></td><td>
1863 <p>A pointer to an &lsquo;FT_Open_Args&rsquo; structure which must be filled by the caller.</p>
1864 </td></tr>
1865 <tr valign=top><td><b>face_index</b></td><td>
1866 <p>The index of the face within the font. The first face has index&nbsp;0.</p>
1867 </td></tr>
1868 </table>
1869 </td></tr></table>
1870 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
1871 <p></p>
1872 <table cellpadding=3 border=0>
1873 <tr valign=top><td><b>aface</b></td><td>
1874 <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>
1875 </td></tr>
1876 </table>
1877 </td></tr></table>
1878 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
1879 <p>FreeType error code. 0&nbsp;means success.</p>
1880 </td></tr></table>
1881 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
1882 <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>
1883 <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>
1884 <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>
1885 <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>
1886 </td></tr></table>
1887 </td></tr></table>
1888 <hr width="75%">
1889 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1890 <td width="100%"></td>
1891 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1892
1893 <table align=center width="75%"><tr><td>
1894 <h4><a name="FT_Attach_File">FT_Attach_File</a></h4>
1895 <table align=center width="87%"><tr><td>
1896 Defined in FT_FREETYPE_H (freetype/freetype.h).
1897 </td></tr></table><br>
1898 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1899
1900   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
1901   <b>FT_Attach_File</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>      face,
1902                   <span class="keyword">const</span> <span class="keyword">char</span>*  filepathname );
1903
1904 </pre></table><br>
1905 <table align=center width="87%"><tr><td>
1906 <p>This function calls <a href="ft2-base_interface.html#FT_Attach_Stream">FT_Attach_Stream</a> to attach a file.</p>
1907 </td></tr></table><br>
1908 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
1909 <p></p>
1910 <table cellpadding=3 border=0>
1911 <tr valign=top><td><b>face</b></td><td>
1912 <p>The target face object.</p>
1913 </td></tr>
1914 </table>
1915 </td></tr></table>
1916 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
1917 <p></p>
1918 <table cellpadding=3 border=0>
1919 <tr valign=top><td><b>filepathname</b></td><td>
1920 <p>The pathname.</p>
1921 </td></tr>
1922 </table>
1923 </td></tr></table>
1924 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
1925 <p>FreeType error code. 0&nbsp;means success.</p>
1926 </td></tr></table>
1927 </td></tr></table>
1928 <hr width="75%">
1929 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1930 <td width="100%"></td>
1931 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1932
1933 <table align=center width="75%"><tr><td>
1934 <h4><a name="FT_Attach_Stream">FT_Attach_Stream</a></h4>
1935 <table align=center width="87%"><tr><td>
1936 Defined in FT_FREETYPE_H (freetype/freetype.h).
1937 </td></tr></table><br>
1938 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1939
1940   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
1941   <b>FT_Attach_Stream</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>        face,
1942                     <a href="ft2-base_interface.html#FT_Open_Args">FT_Open_Args</a>*  parameters );
1943
1944 </pre></table><br>
1945 <table align=center width="87%"><tr><td>
1946 <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>
1947 </td></tr></table><br>
1948 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
1949 <p></p>
1950 <table cellpadding=3 border=0>
1951 <tr valign=top><td><b>face</b></td><td>
1952 <p>The target face object.</p>
1953 </td></tr>
1954 </table>
1955 </td></tr></table>
1956 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
1957 <p></p>
1958 <table cellpadding=3 border=0>
1959 <tr valign=top><td><b>parameters</b></td><td>
1960 <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>
1961 </td></tr>
1962 </table>
1963 </td></tr></table>
1964 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
1965 <p>FreeType error code. 0&nbsp;means success.</p>
1966 </td></tr></table>
1967 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
1968 <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>
1969 <p>Client applications are expected to know what they are doing when invoking this function. Most drivers simply do not implement file attachments.</p>
1970 </td></tr></table>
1971 </td></tr></table>
1972 <hr width="75%">
1973 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
1974 <td width="100%"></td>
1975 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
1976
1977 <table align=center width="75%"><tr><td>
1978 <h4><a name="FT_Reference_Face">FT_Reference_Face</a></h4>
1979 <table align=center width="87%"><tr><td>
1980 Defined in FT_FREETYPE_H (freetype/freetype.h).
1981 </td></tr></table><br>
1982 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
1983
1984   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
1985   <b>FT_Reference_Face</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>  face );
1986
1987 </pre></table><br>
1988 <table align=center width="87%"><tr><td>
1989 <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>
1990 <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>
1991 </td></tr></table><br>
1992 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
1993 <p></p>
1994 <table cellpadding=3 border=0>
1995 <tr valign=top><td><b>face</b></td><td>
1996 <p>A handle to a target face object.</p>
1997 </td></tr>
1998 </table>
1999 </td></tr></table>
2000 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
2001 <p>FreeType error code. 0&nbsp;means success.</p>
2002 </td></tr></table>
2003 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>since</b></em></td></tr><tr><td>
2004 <p>2.4.2</p>
2005 </td></tr></table>
2006 </td></tr></table>
2007 <hr width="75%">
2008 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2009 <td width="100%"></td>
2010 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2011
2012 <table align=center width="75%"><tr><td>
2013 <h4><a name="FT_Done_Face">FT_Done_Face</a></h4>
2014 <table align=center width="87%"><tr><td>
2015 Defined in FT_FREETYPE_H (freetype/freetype.h).
2016 </td></tr></table><br>
2017 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2018
2019   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
2020   <b>FT_Done_Face</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>  face );
2021
2022 </pre></table><br>
2023 <table align=center width="87%"><tr><td>
2024 <p>Discard a given face object, as well as all of its child slots and sizes.</p>
2025 </td></tr></table><br>
2026 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
2027 <p></p>
2028 <table cellpadding=3 border=0>
2029 <tr valign=top><td><b>face</b></td><td>
2030 <p>A handle to a target face object.</p>
2031 </td></tr>
2032 </table>
2033 </td></tr></table>
2034 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
2035 <p>FreeType error code. 0&nbsp;means success.</p>
2036 </td></tr></table>
2037 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
2038 <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>
2039 </td></tr></table>
2040 </td></tr></table>
2041 <hr width="75%">
2042 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2043 <td width="100%"></td>
2044 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2045
2046 <table align=center width="75%"><tr><td>
2047 <h4><a name="FT_Select_Size">FT_Select_Size</a></h4>
2048 <table align=center width="87%"><tr><td>
2049 Defined in FT_FREETYPE_H (freetype/freetype.h).
2050 </td></tr></table><br>
2051 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2052
2053   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
2054   <b>FT_Select_Size</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>  face,
2055                   <a href="ft2-basic_types.html#FT_Int">FT_Int</a>   strike_index );
2056
2057 </pre></table><br>
2058 <table align=center width="87%"><tr><td>
2059 <p>Select a bitmap strike.</p>
2060 </td></tr></table><br>
2061 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
2062 <p></p>
2063 <table cellpadding=3 border=0>
2064 <tr valign=top><td><b>face</b></td><td>
2065 <p>A handle to a target face object.</p>
2066 </td></tr>
2067 </table>
2068 </td></tr></table>
2069 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
2070 <p></p>
2071 <table cellpadding=3 border=0>
2072 <tr valign=top><td><b>strike_index</b></td><td>
2073 <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>
2074 </td></tr>
2075 </table>
2076 </td></tr></table>
2077 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
2078 <p>FreeType error code. 0&nbsp;means success.</p>
2079 </td></tr></table>
2080 </td></tr></table>
2081 <hr width="75%">
2082 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2083 <td width="100%"></td>
2084 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2085
2086 <table align=center width="75%"><tr><td>
2087 <h4><a name="FT_Size_Request_Type">FT_Size_Request_Type</a></h4>
2088 <table align=center width="87%"><tr><td>
2089 Defined in FT_FREETYPE_H (freetype/freetype.h).
2090 </td></tr></table><br>
2091 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2092
2093   <span class="keyword">typedef</span> <span class="keyword">enum</span>  FT_Size_Request_Type_
2094   {
2095     <a href="ft2-base_interface.html#FT_Size_Request_Type">FT_SIZE_REQUEST_TYPE_NOMINAL</a>,
2096     <a href="ft2-base_interface.html#FT_Size_Request_Type">FT_SIZE_REQUEST_TYPE_REAL_DIM</a>,
2097     <a href="ft2-base_interface.html#FT_Size_Request_Type">FT_SIZE_REQUEST_TYPE_BBOX</a>,
2098     <a href="ft2-base_interface.html#FT_Size_Request_Type">FT_SIZE_REQUEST_TYPE_CELL</a>,
2099     <a href="ft2-base_interface.html#FT_Size_Request_Type">FT_SIZE_REQUEST_TYPE_SCALES</a>,
2100
2101     FT_SIZE_REQUEST_TYPE_MAX
2102
2103   } <b>FT_Size_Request_Type</b>;
2104
2105 </pre></table><br>
2106 <table align=center width="87%"><tr><td>
2107 <p>An enumeration type that lists the supported size request types.</p>
2108 </td></tr></table><br>
2109 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td>
2110 <p></p>
2111 <table cellpadding=3 border=0>
2112 <tr valign=top><td colspan=0><b>FT_SIZE_REQUEST_TYPE_NOMINAL</b></td></tr>
2113 <tr valign=top><td></td><td>
2114 <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>
2115 </td></tr>
2116 <tr valign=top><td colspan=0><b>FT_SIZE_REQUEST_TYPE_REAL_DIM</b></td></tr>
2117 <tr valign=top><td></td><td>
2118 <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>
2119 </td></tr>
2120 <tr valign=top><td colspan=0><b>FT_SIZE_REQUEST_TYPE_BBOX</b></td></tr>
2121 <tr valign=top><td></td><td>
2122 <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>
2123 </td></tr>
2124 <tr valign=top><td colspan=0><b>FT_SIZE_REQUEST_TYPE_CELL</b></td></tr>
2125 <tr valign=top><td></td><td>
2126 <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>
2127 </td></tr>
2128 <tr valign=top><td colspan=0><b>FT_SIZE_REQUEST_TYPE_SCALES</b></td></tr>
2129 <tr valign=top><td></td><td>
2130 <p>Specify the scaling values directly.</p>
2131 </td></tr>
2132 </table>
2133 </td></tr></table>
2134 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
2135 <p>The above descriptions only apply to scalable formats. For bitmap formats, the behaviour is up to the driver.</p>
2136 <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>
2137 </td></tr></table>
2138 </td></tr></table>
2139 <hr width="75%">
2140 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2141 <td width="100%"></td>
2142 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2143
2144 <table align=center width="75%"><tr><td>
2145 <h4><a name="FT_Size_RequestRec">FT_Size_RequestRec</a></h4>
2146 <table align=center width="87%"><tr><td>
2147 Defined in FT_FREETYPE_H (freetype/freetype.h).
2148 </td></tr></table><br>
2149 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2150
2151   <span class="keyword">typedef</span> <span class="keyword">struct</span>  FT_Size_RequestRec_
2152   {
2153     <a href="ft2-base_interface.html#FT_Size_Request_Type">FT_Size_Request_Type</a>  type;
2154     <a href="ft2-basic_types.html#FT_Long">FT_Long</a>               width;
2155     <a href="ft2-basic_types.html#FT_Long">FT_Long</a>               height;
2156     <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>               horiResolution;
2157     <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>               vertResolution;
2158
2159   } <b>FT_Size_RequestRec</b>;
2160
2161 </pre></table><br>
2162 <table align=center width="87%"><tr><td>
2163 <p>A structure used to model a size request.</p>
2164 </td></tr></table><br>
2165 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>fields</b></em></td></tr><tr><td>
2166 <p></p>
2167 <table cellpadding=3 border=0>
2168 <tr valign=top><td><b>type</b></td><td>
2169 <p>See <a href="ft2-base_interface.html#FT_Size_Request_Type">FT_Size_Request_Type</a>.</p>
2170 </td></tr>
2171 <tr valign=top><td><b>width</b></td><td>
2172 <p>The desired width.</p>
2173 </td></tr>
2174 <tr valign=top><td><b>height</b></td><td>
2175 <p>The desired height.</p>
2176 </td></tr>
2177 <tr valign=top><td><b>horiResolution</b></td><td>
2178 <p>The horizontal resolution. If set to zero, &lsquo;width&rsquo; is treated as a 26.6 fractional pixel value.</p>
2179 </td></tr>
2180 <tr valign=top><td><b>vertResolution</b></td><td>
2181 <p>The vertical resolution. If set to zero, &lsquo;height&rsquo; is treated as a 26.6 fractional pixel value.</p>
2182 </td></tr>
2183 </table>
2184 </td></tr></table>
2185 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
2186 <p>If &lsquo;width&rsquo; is zero, then the horizontal scaling value is set equal to the vertical scaling value, and vice versa.</p>
2187 </td></tr></table>
2188 </td></tr></table>
2189 <hr width="75%">
2190 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2191 <td width="100%"></td>
2192 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2193
2194 <table align=center width="75%"><tr><td>
2195 <h4><a name="FT_Size_Request">FT_Size_Request</a></h4>
2196 <table align=center width="87%"><tr><td>
2197 Defined in FT_FREETYPE_H (freetype/freetype.h).
2198 </td></tr></table><br>
2199 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2200
2201   <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_Size_RequestRec_  *<b>FT_Size_Request</b>;
2202
2203 </pre></table><br>
2204 <table align=center width="87%"><tr><td>
2205 <p>A handle to a size request structure.</p>
2206 </td></tr></table><br>
2207 </td></tr></table>
2208 <hr width="75%">
2209 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2210 <td width="100%"></td>
2211 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2212
2213 <table align=center width="75%"><tr><td>
2214 <h4><a name="FT_Request_Size">FT_Request_Size</a></h4>
2215 <table align=center width="87%"><tr><td>
2216 Defined in FT_FREETYPE_H (freetype/freetype.h).
2217 </td></tr></table><br>
2218 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2219
2220   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
2221   <b>FT_Request_Size</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>          face,
2222                    <a href="ft2-base_interface.html#FT_Size_Request">FT_Size_Request</a>  req );
2223
2224 </pre></table><br>
2225 <table align=center width="87%"><tr><td>
2226 <p>Resize the scale of the active <a href="ft2-base_interface.html#FT_Size">FT_Size</a> object in a face.</p>
2227 </td></tr></table><br>
2228 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
2229 <p></p>
2230 <table cellpadding=3 border=0>
2231 <tr valign=top><td><b>face</b></td><td>
2232 <p>A handle to a target face object.</p>
2233 </td></tr>
2234 </table>
2235 </td></tr></table>
2236 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
2237 <p></p>
2238 <table cellpadding=3 border=0>
2239 <tr valign=top><td><b>req</b></td><td>
2240 <p>A pointer to a <a href="ft2-base_interface.html#FT_Size_RequestRec">FT_Size_RequestRec</a>.</p>
2241 </td></tr>
2242 </table>
2243 </td></tr></table>
2244 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
2245 <p>FreeType error code. 0&nbsp;means success.</p>
2246 </td></tr></table>
2247 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
2248 <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>
2249 </td></tr></table>
2250 </td></tr></table>
2251 <hr width="75%">
2252 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2253 <td width="100%"></td>
2254 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2255
2256 <table align=center width="75%"><tr><td>
2257 <h4><a name="FT_Set_Char_Size">FT_Set_Char_Size</a></h4>
2258 <table align=center width="87%"><tr><td>
2259 Defined in FT_FREETYPE_H (freetype/freetype.h).
2260 </td></tr></table><br>
2261 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2262
2263   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
2264   <b>FT_Set_Char_Size</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>     face,
2265                     <a href="ft2-basic_types.html#FT_F26Dot6">FT_F26Dot6</a>  char_width,
2266                     <a href="ft2-basic_types.html#FT_F26Dot6">FT_F26Dot6</a>  char_height,
2267                     <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>     horz_resolution,
2268                     <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>     vert_resolution );
2269
2270 </pre></table><br>
2271 <table align=center width="87%"><tr><td>
2272 <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>
2273 </td></tr></table><br>
2274 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
2275 <p></p>
2276 <table cellpadding=3 border=0>
2277 <tr valign=top><td><b>face</b></td><td>
2278 <p>A handle to a target face object.</p>
2279 </td></tr>
2280 </table>
2281 </td></tr></table>
2282 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
2283 <p></p>
2284 <table cellpadding=3 border=0>
2285 <tr valign=top><td><b>char_width</b></td><td>
2286 <p>The nominal width, in 26.6 fractional points.</p>
2287 </td></tr>
2288 <tr valign=top><td><b>char_height</b></td><td>
2289 <p>The nominal height, in 26.6 fractional points.</p>
2290 </td></tr>
2291 <tr valign=top><td><b>horz_resolution</b></td><td>
2292 <p>The horizontal resolution in dpi.</p>
2293 </td></tr>
2294 <tr valign=top><td><b>vert_resolution</b></td><td>
2295 <p>The vertical resolution in dpi.</p>
2296 </td></tr>
2297 </table>
2298 </td></tr></table>
2299 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
2300 <p>FreeType error code. 0&nbsp;means success.</p>
2301 </td></tr></table>
2302 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
2303 <p>If either the character width or height is zero, it is set equal to the other value.</p>
2304 <p>If either the horizontal or vertical resolution is zero, it is set equal to the other value.</p>
2305 <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>
2306 <p>Don't use this function if you are using the FreeType cache API.</p>
2307 </td></tr></table>
2308 </td></tr></table>
2309 <hr width="75%">
2310 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2311 <td width="100%"></td>
2312 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2313
2314 <table align=center width="75%"><tr><td>
2315 <h4><a name="FT_Set_Pixel_Sizes">FT_Set_Pixel_Sizes</a></h4>
2316 <table align=center width="87%"><tr><td>
2317 Defined in FT_FREETYPE_H (freetype/freetype.h).
2318 </td></tr></table><br>
2319 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2320
2321   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
2322   <b>FT_Set_Pixel_Sizes</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>  face,
2323                       <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>  pixel_width,
2324                       <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>  pixel_height );
2325
2326 </pre></table><br>
2327 <table align=center width="87%"><tr><td>
2328 <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>
2329 </td></tr></table><br>
2330 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
2331 <p></p>
2332 <table cellpadding=3 border=0>
2333 <tr valign=top><td><b>face</b></td><td>
2334 <p>A handle to the target face object.</p>
2335 </td></tr>
2336 </table>
2337 </td></tr></table>
2338 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
2339 <p></p>
2340 <table cellpadding=3 border=0>
2341 <tr valign=top><td><b>pixel_width</b></td><td>
2342 <p>The nominal width, in pixels.</p>
2343 </td></tr>
2344 <tr valign=top><td><b>pixel_height</b></td><td>
2345 <p>The nominal height, in pixels.</p>
2346 </td></tr>
2347 </table>
2348 </td></tr></table>
2349 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
2350 <p>FreeType error code. 0&nbsp;means success.</p>
2351 </td></tr></table>
2352 </td></tr></table>
2353 <hr width="75%">
2354 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2355 <td width="100%"></td>
2356 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2357
2358 <table align=center width="75%"><tr><td>
2359 <h4><a name="FT_Load_Glyph">FT_Load_Glyph</a></h4>
2360 <table align=center width="87%"><tr><td>
2361 Defined in FT_FREETYPE_H (freetype/freetype.h).
2362 </td></tr></table><br>
2363 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2364
2365   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
2366   <b>FT_Load_Glyph</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>   face,
2367                  <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>   glyph_index,
2368                  <a href="ft2-basic_types.html#FT_Int32">FT_Int32</a>  load_flags );
2369
2370 </pre></table><br>
2371 <table align=center width="87%"><tr><td>
2372 <p>A function used to load a single glyph into the glyph slot of a face object.</p>
2373 </td></tr></table><br>
2374 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
2375 <p></p>
2376 <table cellpadding=3 border=0>
2377 <tr valign=top><td><b>face</b></td><td>
2378 <p>A handle to the target face object where the glyph is loaded.</p>
2379 </td></tr>
2380 </table>
2381 </td></tr></table>
2382 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
2383 <p></p>
2384 <table cellpadding=3 border=0>
2385 <tr valign=top><td><b>glyph_index</b></td><td>
2386 <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>
2387 </td></tr>
2388 <tr valign=top><td><b>load_flags</b></td><td>
2389 <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>
2390 </td></tr>
2391 </table>
2392 </td></tr></table>
2393 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
2394 <p>FreeType error code. 0&nbsp;means success.</p>
2395 </td></tr></table>
2396 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
2397 <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>
2398 <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>
2399 </td></tr></table>
2400 </td></tr></table>
2401 <hr width="75%">
2402 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2403 <td width="100%"></td>
2404 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2405
2406 <table align=center width="75%"><tr><td>
2407 <h4><a name="FT_Load_Char">FT_Load_Char</a></h4>
2408 <table align=center width="87%"><tr><td>
2409 Defined in FT_FREETYPE_H (freetype/freetype.h).
2410 </td></tr></table><br>
2411 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2412
2413   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
2414   <b>FT_Load_Char</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>   face,
2415                 <a href="ft2-basic_types.html#FT_ULong">FT_ULong</a>  char_code,
2416                 <a href="ft2-basic_types.html#FT_Int32">FT_Int32</a>  load_flags );
2417
2418 </pre></table><br>
2419 <table align=center width="87%"><tr><td>
2420 <p>A function used to load a single glyph into the glyph slot of a face object, according to its character code.</p>
2421 </td></tr></table><br>
2422 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
2423 <p></p>
2424 <table cellpadding=3 border=0>
2425 <tr valign=top><td><b>face</b></td><td>
2426 <p>A handle to a target face object where the glyph is loaded.</p>
2427 </td></tr>
2428 </table>
2429 </td></tr></table>
2430 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
2431 <p></p>
2432 <table cellpadding=3 border=0>
2433 <tr valign=top><td><b>char_code</b></td><td>
2434 <p>The glyph's character code, according to the current charmap used in the face.</p>
2435 </td></tr>
2436 <tr valign=top><td><b>load_flags</b></td><td>
2437 <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>
2438 </td></tr>
2439 </table>
2440 </td></tr></table>
2441 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
2442 <p>FreeType error code. 0&nbsp;means success.</p>
2443 </td></tr></table>
2444 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
2445 <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>
2446 </td></tr></table>
2447 </td></tr></table>
2448 <hr width="75%">
2449 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2450 <td width="100%"></td>
2451 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2452
2453 <table align=center width="75%"><tr><td>
2454 <h4><a name="FT_LOAD_XXX">FT_LOAD_XXX</a></h4>
2455 <table align=center width="87%"><tr><td>
2456 Defined in FT_FREETYPE_H (freetype/freetype.h).
2457 </td></tr></table><br>
2458 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2459
2460 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_DEFAULT</a>                      0x0
2461 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_SCALE</a>                     0x1
2462 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_HINTING</a>                   0x2
2463 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_RENDER</a>                       0x4
2464 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_BITMAP</a>                    0x8
2465 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_VERTICAL_LAYOUT</a>              0x10
2466 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_FORCE_AUTOHINT</a>               0x20
2467 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_CROP_BITMAP</a>                  0x40
2468 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_PEDANTIC</a>                     0x80
2469 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH</a>  0x200
2470 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_RECURSE</a>                   0x400
2471 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_IGNORE_TRANSFORM</a>             0x800
2472 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_MONOCHROME</a>                   0x1000
2473 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_LINEAR_DESIGN</a>                0x2000
2474 #define <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_AUTOHINT</a>                  0x8000U
2475
2476 </pre></table><br>
2477 <table align=center width="87%"><tr><td>
2478 <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>
2479 </td></tr></table><br>
2480 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td>
2481 <p></p>
2482 <table cellpadding=3 border=0>
2483 <tr valign=top><td><b>FT_LOAD_DEFAULT</b></td><td>
2484 <p>Corresponding to&nbsp;0, this value is used as the default glyph load operation. In this case, the following happens:</p>
2485 <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>
2486 <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>
2487 <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>
2488 </td></tr>
2489 <tr valign=top><td><b>FT_LOAD_NO_SCALE</b></td><td>
2490 <p>Don't scale the outline glyph loaded, but keep it in font units.</p>
2491 <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>
2492 </td></tr>
2493 <tr valign=top><td><b>FT_LOAD_NO_HINTING</b></td><td>
2494 <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>
2495 <p>This flag is implied by <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_SCALE</a>.</p>
2496 </td></tr>
2497 <tr valign=top><td><b>FT_LOAD_RENDER</b></td><td>
2498 <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>
2499 <p>This flag is unset by <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_SCALE</a>.</p>
2500 </td></tr>
2501 <tr valign=top><td><b>FT_LOAD_NO_BITMAP</b></td><td>
2502 <p>Ignore bitmap strikes when loading. Bitmap-only fonts ignore this flag.</p>
2503 <p><a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_SCALE</a> always sets this flag.</p>
2504 </td></tr>
2505 <tr valign=top><td colspan=0><b>FT_LOAD_VERTICAL_LAYOUT</b></td></tr>
2506 <tr valign=top><td></td><td>
2507 <p>Load the glyph for vertical text layout. <i>Don't</i> use it as it is problematic currently.</p>
2508 </td></tr>
2509 <tr valign=top><td><b>FT_LOAD_FORCE_AUTOHINT</b></td><td>
2510 <p>Indicates that the auto-hinter is preferred over the font's native hinter. See also the note below.</p>
2511 </td></tr>
2512 <tr valign=top><td><b>FT_LOAD_CROP_BITMAP</b></td><td>
2513 <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>
2514 </td></tr>
2515 <tr valign=top><td><b>FT_LOAD_PEDANTIC</b></td><td>
2516 <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>
2517 </td></tr>
2518 <tr valign=top><td colspan=0><b>FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH</b></td></tr>
2519 <tr valign=top><td></td><td>
2520 <p>Indicates that the font driver should ignore the global advance width defined in the font. By default, that value is used as the advance width for all glyphs when the face has <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_FIXED_WIDTH</a> set.</p>
2521 <p>This flag exists for historical reasons (to support buggy CJK fonts).</p>
2522 </td></tr>
2523 <tr valign=top><td><b>FT_LOAD_NO_RECURSE</b></td><td>
2524 <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>
2525 <p>The description of sub-glyphs is not available to client applications for now.</p>
2526 <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>
2527 </td></tr>
2528 <tr valign=top><td colspan=0><b>FT_LOAD_IGNORE_TRANSFORM</b></td></tr>
2529 <tr valign=top><td></td><td>
2530 <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>
2531 </td></tr>
2532 <tr valign=top><td><b>FT_LOAD_MONOCHROME</b></td><td>
2533 <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>
2534 <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>
2535 </td></tr>
2536 <tr valign=top><td><b>FT_LOAD_LINEAR_DESIGN</b></td><td>
2537 <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>
2538 </td></tr>
2539 <tr valign=top><td><b>FT_LOAD_NO_AUTOHINT</b></td><td>
2540 <p>Disable auto-hinter. See also the note below.</p>
2541 </td></tr>
2542 </table>
2543 </td></tr></table>
2544 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
2545 <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>
2546 <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>
2547 <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>
2548 </td></tr></table>
2549 </td></tr></table>
2550 <hr width="75%">
2551 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2552 <td width="100%"></td>
2553 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2554
2555 <table align=center width="75%"><tr><td>
2556 <h4><a name="FT_LOAD_TARGET_XXX">FT_LOAD_TARGET_XXX</a></h4>
2557 <table align=center width="87%"><tr><td>
2558 Defined in FT_FREETYPE_H (freetype/freetype.h).
2559 </td></tr></table><br>
2560 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2561
2562 #define FT_LOAD_TARGET_( x )   ( (<a href="ft2-basic_types.html#FT_Int32">FT_Int32</a>)( (x) &amp; 15 ) &lt;&lt; 16 )
2563
2564 #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> )
2565 #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>  )
2566 #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>   )
2567 #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>    )
2568 #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>  )
2569
2570 </pre></table><br>
2571 <table align=center width="87%"><tr><td>
2572 <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>
2573 <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>
2574 <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>
2575 </td></tr></table><br>
2576 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td>
2577 <p></p>
2578 <table cellpadding=3 border=0>
2579 <tr valign=top><td><b>FT_LOAD_TARGET_NORMAL</b></td><td>
2580 <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>
2581 </td></tr>
2582 <tr valign=top><td><b>FT_LOAD_TARGET_LIGHT</b></td><td>
2583 <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>
2584 <p>As a special exception, this target implies <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_FORCE_AUTOHINT</a>.</p>
2585 </td></tr>
2586 <tr valign=top><td><b>FT_LOAD_TARGET_MONO</b></td><td>
2587 <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>
2588 </td></tr>
2589 <tr valign=top><td><b>FT_LOAD_TARGET_LCD</b></td><td>
2590 <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>
2591 </td></tr>
2592 <tr valign=top><td><b>FT_LOAD_TARGET_LCD_V</b></td><td>
2593 <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>
2594 </td></tr>
2595 </table>
2596 </td></tr></table>
2597 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
2598 <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>
2599 <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>
2600 <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>
2601 <pre class="colored">
2602   FT_Load_Glyph( face, glyph_index,
2603                  load_flags | FT_LOAD_TARGET_LIGHT );
2604
2605   FT_Render_Glyph( face-&gt;glyph, FT_RENDER_MODE_LCD );
2606 </pre>
2607 </td></tr></table>
2608 </td></tr></table>
2609 <hr width="75%">
2610 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2611 <td width="100%"></td>
2612 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2613
2614 <table align=center width="75%"><tr><td>
2615 <h4><a name="FT_LOAD_TARGET_MODE">FT_LOAD_TARGET_MODE</a></h4>
2616 <table align=center width="87%"><tr><td>
2617 Defined in FT_FREETYPE_H (freetype/freetype.h).
2618 </td></tr></table><br>
2619 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2620
2621 #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 ) )
2622
2623 </pre></table><br>
2624 <table align=center width="87%"><tr><td>
2625 <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>
2626 </td></tr></table><br>
2627 </td></tr></table>
2628 <hr width="75%">
2629 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2630 <td width="100%"></td>
2631 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2632
2633 <table align=center width="75%"><tr><td>
2634 <h4><a name="FT_Set_Transform">FT_Set_Transform</a></h4>
2635 <table align=center width="87%"><tr><td>
2636 Defined in FT_FREETYPE_H (freetype/freetype.h).
2637 </td></tr></table><br>
2638 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2639
2640   FT_EXPORT( <span class="keyword">void</span> )
2641   <b>FT_Set_Transform</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>     face,
2642                     <a href="ft2-basic_types.html#FT_Matrix">FT_Matrix</a>*  matrix,
2643                     <a href="ft2-basic_types.html#FT_Vector">FT_Vector</a>*  delta );
2644
2645 </pre></table><br>
2646 <table align=center width="87%"><tr><td>
2647 <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>
2648 </td></tr></table><br>
2649 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
2650 <p></p>
2651 <table cellpadding=3 border=0>
2652 <tr valign=top><td><b>face</b></td><td>
2653 <p>A handle to the source face object.</p>
2654 </td></tr>
2655 </table>
2656 </td></tr></table>
2657 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
2658 <p></p>
2659 <table cellpadding=3 border=0>
2660 <tr valign=top><td><b>matrix</b></td><td>
2661 <p>A pointer to the transformation's 2x2 matrix. Use&nbsp;0 for the identity matrix.</p>
2662 </td></tr>
2663 <tr valign=top><td><b>delta</b></td><td>
2664 <p>A pointer to the translation vector. Use&nbsp;0 for the null vector.</p>
2665 </td></tr>
2666 </table>
2667 </td></tr></table>
2668 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
2669 <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>
2670 <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>
2671 </td></tr></table>
2672 </td></tr></table>
2673 <hr width="75%">
2674 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2675 <td width="100%"></td>
2676 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2677
2678 <table align=center width="75%"><tr><td>
2679 <h4><a name="FT_Render_Mode">FT_Render_Mode</a></h4>
2680 <table align=center width="87%"><tr><td>
2681 Defined in FT_FREETYPE_H (freetype/freetype.h).
2682 </td></tr></table><br>
2683 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2684
2685   <span class="keyword">typedef</span> <span class="keyword">enum</span>  FT_Render_Mode_
2686   {
2687     <a href="ft2-base_interface.html#FT_Render_Mode">FT_RENDER_MODE_NORMAL</a> = 0,
2688     <a href="ft2-base_interface.html#FT_Render_Mode">FT_RENDER_MODE_LIGHT</a>,
2689     <a href="ft2-base_interface.html#FT_Render_Mode">FT_RENDER_MODE_MONO</a>,
2690     <a href="ft2-base_interface.html#FT_Render_Mode">FT_RENDER_MODE_LCD</a>,
2691     <a href="ft2-base_interface.html#FT_Render_Mode">FT_RENDER_MODE_LCD_V</a>,
2692
2693     FT_RENDER_MODE_MAX
2694
2695   } <b>FT_Render_Mode</b>;
2696
2697 </pre></table><br>
2698 <table align=center width="87%"><tr><td>
2699 <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>
2700 <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>
2701 <p>All modes except <a href="ft2-base_interface.html#FT_Render_Mode">FT_RENDER_MODE_MONO</a> use 256 levels of opacity.</p>
2702 </td></tr></table><br>
2703 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td>
2704 <p></p>
2705 <table cellpadding=3 border=0>
2706 <tr valign=top><td><b>FT_RENDER_MODE_NORMAL</b></td><td>
2707 <p>This is the default render mode; it corresponds to 8-bit anti-aliased bitmaps.</p>
2708 </td></tr>
2709 <tr valign=top><td><b>FT_RENDER_MODE_LIGHT</b></td><td>
2710 <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>
2711 </td></tr>
2712 <tr valign=top><td><b>FT_RENDER_MODE_MONO</b></td><td>
2713 <p>This mode corresponds to 1-bit bitmaps (with 2&nbsp;levels of opacity).</p>
2714 </td></tr>
2715 <tr valign=top><td><b>FT_RENDER_MODE_LCD</b></td><td>
2716 <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>
2717 </td></tr>
2718 <tr valign=top><td><b>FT_RENDER_MODE_LCD_V</b></td><td>
2719 <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>
2720 </td></tr>
2721 </table>
2722 </td></tr></table>
2723 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
2724 <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>
2725 <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>
2726 </td></tr></table>
2727 </td></tr></table>
2728 <hr width="75%">
2729 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2730 <td width="100%"></td>
2731 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2732
2733 <table align=center width="75%"><tr><td>
2734 <h4><a name="ft_render_mode_xxx">ft_render_mode_xxx</a></h4>
2735 <table align=center width="87%"><tr><td>
2736 Defined in FT_FREETYPE_H (freetype/freetype.h).
2737 </td></tr></table><br>
2738 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2739
2740 #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>
2741 #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>
2742
2743 </pre></table><br>
2744 <table align=center width="87%"><tr><td>
2745 <p>These constants are deprecated. Use the corresponding <a href="ft2-base_interface.html#FT_Render_Mode">FT_Render_Mode</a> values instead.</p>
2746 </td></tr></table><br>
2747 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td>
2748 <p></p>
2749 <table cellpadding=3 border=0>
2750 <tr valign=top><td><b>ft_render_mode_normal</b></td><td>
2751 <p>see <a href="ft2-base_interface.html#FT_Render_Mode">FT_RENDER_MODE_NORMAL</a></p>
2752 </td></tr>
2753 <tr valign=top><td><b>ft_render_mode_mono</b></td><td>
2754 <p>see <a href="ft2-base_interface.html#FT_Render_Mode">FT_RENDER_MODE_MONO</a></p>
2755 </td></tr>
2756 </table>
2757 </td></tr></table>
2758 </td></tr></table>
2759 <hr width="75%">
2760 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2761 <td width="100%"></td>
2762 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2763
2764 <table align=center width="75%"><tr><td>
2765 <h4><a name="FT_Render_Glyph">FT_Render_Glyph</a></h4>
2766 <table align=center width="87%"><tr><td>
2767 Defined in FT_FREETYPE_H (freetype/freetype.h).
2768 </td></tr></table><br>
2769 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2770
2771   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
2772   <b>FT_Render_Glyph</b>( <a href="ft2-base_interface.html#FT_GlyphSlot">FT_GlyphSlot</a>    slot,
2773                    <a href="ft2-base_interface.html#FT_Render_Mode">FT_Render_Mode</a>  render_mode );
2774
2775 </pre></table><br>
2776 <table align=center width="87%"><tr><td>
2777 <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>
2778 </td></tr></table><br>
2779 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
2780 <p></p>
2781 <table cellpadding=3 border=0>
2782 <tr valign=top><td><b>slot</b></td><td>
2783 <p>A handle to the glyph slot containing the image to convert.</p>
2784 </td></tr>
2785 </table>
2786 </td></tr></table>
2787 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
2788 <p></p>
2789 <table cellpadding=3 border=0>
2790 <tr valign=top><td><b>render_mode</b></td><td>
2791 <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>
2792 </td></tr>
2793 </table>
2794 </td></tr></table>
2795 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
2796 <p>FreeType error code. 0&nbsp;means success.</p>
2797 </td></tr></table>
2798 </td></tr></table>
2799 <hr width="75%">
2800 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2801 <td width="100%"></td>
2802 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2803
2804 <table align=center width="75%"><tr><td>
2805 <h4><a name="FT_Kerning_Mode">FT_Kerning_Mode</a></h4>
2806 <table align=center width="87%"><tr><td>
2807 Defined in FT_FREETYPE_H (freetype/freetype.h).
2808 </td></tr></table><br>
2809 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2810
2811   <span class="keyword">typedef</span> <span class="keyword">enum</span>  FT_Kerning_Mode_
2812   {
2813     <a href="ft2-base_interface.html#FT_Kerning_Mode">FT_KERNING_DEFAULT</a>  = 0,
2814     <a href="ft2-base_interface.html#FT_Kerning_Mode">FT_KERNING_UNFITTED</a>,
2815     <a href="ft2-base_interface.html#FT_Kerning_Mode">FT_KERNING_UNSCALED</a>
2816
2817   } <b>FT_Kerning_Mode</b>;
2818
2819 </pre></table><br>
2820 <table align=center width="87%"><tr><td>
2821 <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>
2822 </td></tr></table><br>
2823 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td>
2824 <p></p>
2825 <table cellpadding=3 border=0>
2826 <tr valign=top><td><b>FT_KERNING_DEFAULT</b></td><td>
2827 <p>Return scaled and grid-fitted kerning distances (value is&nbsp;0).</p>
2828 </td></tr>
2829 <tr valign=top><td><b>FT_KERNING_UNFITTED</b></td><td>
2830 <p>Return scaled but un-grid-fitted kerning distances.</p>
2831 </td></tr>
2832 <tr valign=top><td><b>FT_KERNING_UNSCALED</b></td><td>
2833 <p>Return the kerning vector in original font units.</p>
2834 </td></tr>
2835 </table>
2836 </td></tr></table>
2837 </td></tr></table>
2838 <hr width="75%">
2839 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2840 <td width="100%"></td>
2841 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2842
2843 <table align=center width="75%"><tr><td>
2844 <h4><a name="ft_kerning_default">ft_kerning_default</a></h4>
2845 <table align=center width="87%"><tr><td>
2846 Defined in FT_FREETYPE_H (freetype/freetype.h).
2847 </td></tr></table><br>
2848 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2849
2850 #define <b>ft_kerning_default</b>   <a href="ft2-base_interface.html#FT_Kerning_Mode">FT_KERNING_DEFAULT</a>
2851
2852 </pre></table><br>
2853 <table align=center width="87%"><tr><td>
2854 <p>This constant is deprecated. Please use <a href="ft2-base_interface.html#FT_Kerning_Mode">FT_KERNING_DEFAULT</a> instead.</p>
2855 </td></tr></table><br>
2856 </td></tr></table>
2857 <hr width="75%">
2858 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2859 <td width="100%"></td>
2860 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2861
2862 <table align=center width="75%"><tr><td>
2863 <h4><a name="ft_kerning_unfitted">ft_kerning_unfitted</a></h4>
2864 <table align=center width="87%"><tr><td>
2865 Defined in FT_FREETYPE_H (freetype/freetype.h).
2866 </td></tr></table><br>
2867 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2868
2869 #define <b>ft_kerning_unfitted</b>  <a href="ft2-base_interface.html#FT_Kerning_Mode">FT_KERNING_UNFITTED</a>
2870
2871 </pre></table><br>
2872 <table align=center width="87%"><tr><td>
2873 <p>This constant is deprecated. Please use <a href="ft2-base_interface.html#FT_Kerning_Mode">FT_KERNING_UNFITTED</a> instead.</p>
2874 </td></tr></table><br>
2875 </td></tr></table>
2876 <hr width="75%">
2877 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2878 <td width="100%"></td>
2879 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2880
2881 <table align=center width="75%"><tr><td>
2882 <h4><a name="ft_kerning_unscaled">ft_kerning_unscaled</a></h4>
2883 <table align=center width="87%"><tr><td>
2884 Defined in FT_FREETYPE_H (freetype/freetype.h).
2885 </td></tr></table><br>
2886 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2887
2888 #define <b>ft_kerning_unscaled</b>  <a href="ft2-base_interface.html#FT_Kerning_Mode">FT_KERNING_UNSCALED</a>
2889
2890 </pre></table><br>
2891 <table align=center width="87%"><tr><td>
2892 <p>This constant is deprecated. Please use <a href="ft2-base_interface.html#FT_Kerning_Mode">FT_KERNING_UNSCALED</a> instead.</p>
2893 </td></tr></table><br>
2894 </td></tr></table>
2895 <hr width="75%">
2896 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2897 <td width="100%"></td>
2898 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2899
2900 <table align=center width="75%"><tr><td>
2901 <h4><a name="FT_Get_Kerning">FT_Get_Kerning</a></h4>
2902 <table align=center width="87%"><tr><td>
2903 Defined in FT_FREETYPE_H (freetype/freetype.h).
2904 </td></tr></table><br>
2905 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2906
2907   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
2908   <b>FT_Get_Kerning</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>     face,
2909                   <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>     left_glyph,
2910                   <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>     right_glyph,
2911                   <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>     kern_mode,
2912                   <a href="ft2-basic_types.html#FT_Vector">FT_Vector</a>  *akerning );
2913
2914 </pre></table><br>
2915 <table align=center width="87%"><tr><td>
2916 <p>Return the kerning vector between two glyphs of a same face.</p>
2917 </td></tr></table><br>
2918 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
2919 <p></p>
2920 <table cellpadding=3 border=0>
2921 <tr valign=top><td><b>face</b></td><td>
2922 <p>A handle to a source face object.</p>
2923 </td></tr>
2924 <tr valign=top><td><b>left_glyph</b></td><td>
2925 <p>The index of the left glyph in the kern pair.</p>
2926 </td></tr>
2927 <tr valign=top><td><b>right_glyph</b></td><td>
2928 <p>The index of the right glyph in the kern pair.</p>
2929 </td></tr>
2930 <tr valign=top><td><b>kern_mode</b></td><td>
2931 <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>
2932 </td></tr>
2933 </table>
2934 </td></tr></table>
2935 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
2936 <p></p>
2937 <table cellpadding=3 border=0>
2938 <tr valign=top><td><b>akerning</b></td><td>
2939 <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>
2940 </td></tr>
2941 </table>
2942 </td></tr></table>
2943 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
2944 <p>FreeType error code. 0&nbsp;means success.</p>
2945 </td></tr></table>
2946 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
2947 <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>
2948 </td></tr></table>
2949 </td></tr></table>
2950 <hr width="75%">
2951 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
2952 <td width="100%"></td>
2953 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
2954
2955 <table align=center width="75%"><tr><td>
2956 <h4><a name="FT_Get_Track_Kerning">FT_Get_Track_Kerning</a></h4>
2957 <table align=center width="87%"><tr><td>
2958 Defined in FT_FREETYPE_H (freetype/freetype.h).
2959 </td></tr></table><br>
2960 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
2961
2962   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
2963   <b>FT_Get_Track_Kerning</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>    face,
2964                         <a href="ft2-basic_types.html#FT_Fixed">FT_Fixed</a>   point_size,
2965                         <a href="ft2-basic_types.html#FT_Int">FT_Int</a>     degree,
2966                         <a href="ft2-basic_types.html#FT_Fixed">FT_Fixed</a>*  akerning );
2967
2968 </pre></table><br>
2969 <table align=center width="87%"><tr><td>
2970 <p>Return the track kerning for a given face object at a given size.</p>
2971 </td></tr></table><br>
2972 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
2973 <p></p>
2974 <table cellpadding=3 border=0>
2975 <tr valign=top><td><b>face</b></td><td>
2976 <p>A handle to a source face object.</p>
2977 </td></tr>
2978 <tr valign=top><td><b>point_size</b></td><td>
2979 <p>The point size in 16.16 fractional points.</p>
2980 </td></tr>
2981 <tr valign=top><td><b>degree</b></td><td>
2982 <p>The degree of tightness.</p>
2983 </td></tr>
2984 </table>
2985 </td></tr></table>
2986 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
2987 <p></p>
2988 <table cellpadding=3 border=0>
2989 <tr valign=top><td><b>akerning</b></td><td>
2990 <p>The kerning in 16.16 fractional points.</p>
2991 </td></tr>
2992 </table>
2993 </td></tr></table>
2994 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
2995 <p>FreeType error code. 0&nbsp;means success.</p>
2996 </td></tr></table>
2997 </td></tr></table>
2998 <hr width="75%">
2999 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3000 <td width="100%"></td>
3001 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3002
3003 <table align=center width="75%"><tr><td>
3004 <h4><a name="FT_Get_Glyph_Name">FT_Get_Glyph_Name</a></h4>
3005 <table align=center width="87%"><tr><td>
3006 Defined in FT_FREETYPE_H (freetype/freetype.h).
3007 </td></tr></table><br>
3008 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
3009
3010   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
3011   <b>FT_Get_Glyph_Name</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>     face,
3012                      <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>     glyph_index,
3013                      <a href="ft2-basic_types.html#FT_Pointer">FT_Pointer</a>  buffer,
3014                      <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>     buffer_max );
3015
3016 </pre></table><br>
3017 <table align=center width="87%"><tr><td>
3018 <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>
3019 </td></tr></table><br>
3020 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
3021 <p></p>
3022 <table cellpadding=3 border=0>
3023 <tr valign=top><td><b>face</b></td><td>
3024 <p>A handle to a source face object.</p>
3025 </td></tr>
3026 <tr valign=top><td><b>glyph_index</b></td><td>
3027 <p>The glyph index.</p>
3028 </td></tr>
3029 <tr valign=top><td><b>buffer_max</b></td><td>
3030 <p>The maximal number of bytes available in the buffer.</p>
3031 </td></tr>
3032 </table>
3033 </td></tr></table>
3034 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
3035 <p></p>
3036 <table cellpadding=3 border=0>
3037 <tr valign=top><td><b>buffer</b></td><td>
3038 <p>A pointer to a target buffer where the name is copied to.</p>
3039 </td></tr>
3040 </table>
3041 </td></tr></table>
3042 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
3043 <p>FreeType error code. 0&nbsp;means success.</p>
3044 </td></tr></table>
3045 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
3046 <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>
3047 <p>The glyph name is truncated to fit within the buffer if it is too long. The returned string is always zero-terminated.</p>
3048 <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>
3049 </td></tr></table>
3050 </td></tr></table>
3051 <hr width="75%">
3052 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3053 <td width="100%"></td>
3054 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3055
3056 <table align=center width="75%"><tr><td>
3057 <h4><a name="FT_Get_Postscript_Name">FT_Get_Postscript_Name</a></h4>
3058 <table align=center width="87%"><tr><td>
3059 Defined in FT_FREETYPE_H (freetype/freetype.h).
3060 </td></tr></table><br>
3061 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
3062
3063   FT_EXPORT( <span class="keyword">const</span> <span class="keyword">char</span>* )
3064   <b>FT_Get_Postscript_Name</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>  face );
3065
3066 </pre></table><br>
3067 <table align=center width="87%"><tr><td>
3068 <p>Retrieve the ASCII PostScript name of a given face, if available. This only works with PostScript and TrueType fonts.</p>
3069 </td></tr></table><br>
3070 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
3071 <p></p>
3072 <table cellpadding=3 border=0>
3073 <tr valign=top><td><b>face</b></td><td>
3074 <p>A handle to the source face object.</p>
3075 </td></tr>
3076 </table>
3077 </td></tr></table>
3078 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
3079 <p>A pointer to the face's PostScript name. NULL if unavailable.</p>
3080 </td></tr></table>
3081 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
3082 <p>The returned pointer is owned by the face and is destroyed with it.</p>
3083 </td></tr></table>
3084 </td></tr></table>
3085 <hr width="75%">
3086 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3087 <td width="100%"></td>
3088 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3089
3090 <table align=center width="75%"><tr><td>
3091 <h4><a name="FT_Select_Charmap">FT_Select_Charmap</a></h4>
3092 <table align=center width="87%"><tr><td>
3093 Defined in FT_FREETYPE_H (freetype/freetype.h).
3094 </td></tr></table><br>
3095 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
3096
3097   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
3098   <b>FT_Select_Charmap</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>      face,
3099                      <a href="ft2-base_interface.html#FT_Encoding">FT_Encoding</a>  encoding );
3100
3101 </pre></table><br>
3102 <table align=center width="87%"><tr><td>
3103 <p>Select a given charmap by its encoding tag (as listed in &lsquo;freetype.h&rsquo;).</p>
3104 </td></tr></table><br>
3105 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
3106 <p></p>
3107 <table cellpadding=3 border=0>
3108 <tr valign=top><td><b>face</b></td><td>
3109 <p>A handle to the source face object.</p>
3110 </td></tr>
3111 </table>
3112 </td></tr></table>
3113 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
3114 <p></p>
3115 <table cellpadding=3 border=0>
3116 <tr valign=top><td><b>encoding</b></td><td>
3117 <p>A handle to the selected encoding.</p>
3118 </td></tr>
3119 </table>
3120 </td></tr></table>
3121 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
3122 <p>FreeType error code. 0&nbsp;means success.</p>
3123 </td></tr></table>
3124 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
3125 <p>This function returns an error if no charmap in the face corresponds to the encoding queried here.</p>
3126 <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>
3127 </td></tr></table>
3128 </td></tr></table>
3129 <hr width="75%">
3130 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3131 <td width="100%"></td>
3132 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3133
3134 <table align=center width="75%"><tr><td>
3135 <h4><a name="FT_Set_Charmap">FT_Set_Charmap</a></h4>
3136 <table align=center width="87%"><tr><td>
3137 Defined in FT_FREETYPE_H (freetype/freetype.h).
3138 </td></tr></table><br>
3139 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
3140
3141   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
3142   <b>FT_Set_Charmap</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>     face,
3143                   <a href="ft2-base_interface.html#FT_CharMap">FT_CharMap</a>  charmap );
3144
3145 </pre></table><br>
3146 <table align=center width="87%"><tr><td>
3147 <p>Select a given charmap for character code to glyph index mapping.</p>
3148 </td></tr></table><br>
3149 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
3150 <p></p>
3151 <table cellpadding=3 border=0>
3152 <tr valign=top><td><b>face</b></td><td>
3153 <p>A handle to the source face object.</p>
3154 </td></tr>
3155 </table>
3156 </td></tr></table>
3157 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
3158 <p></p>
3159 <table cellpadding=3 border=0>
3160 <tr valign=top><td><b>charmap</b></td><td>
3161 <p>A handle to the selected charmap.</p>
3162 </td></tr>
3163 </table>
3164 </td></tr></table>
3165 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
3166 <p>FreeType error code. 0&nbsp;means success.</p>
3167 </td></tr></table>
3168 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
3169 <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>
3170 <p>It also fails if a type&nbsp;14 charmap is selected.</p>
3171 </td></tr></table>
3172 </td></tr></table>
3173 <hr width="75%">
3174 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3175 <td width="100%"></td>
3176 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3177
3178 <table align=center width="75%"><tr><td>
3179 <h4><a name="FT_Get_Charmap_Index">FT_Get_Charmap_Index</a></h4>
3180 <table align=center width="87%"><tr><td>
3181 Defined in FT_FREETYPE_H (freetype/freetype.h).
3182 </td></tr></table><br>
3183 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
3184
3185   FT_EXPORT( <a href="ft2-basic_types.html#FT_Int">FT_Int</a> )
3186   <b>FT_Get_Charmap_Index</b>( <a href="ft2-base_interface.html#FT_CharMap">FT_CharMap</a>  charmap );
3187
3188 </pre></table><br>
3189 <table align=center width="87%"><tr><td>
3190 <p>Retrieve index of a given charmap.</p>
3191 </td></tr></table><br>
3192 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
3193 <p></p>
3194 <table cellpadding=3 border=0>
3195 <tr valign=top><td><b>charmap</b></td><td>
3196 <p>A handle to a charmap.</p>
3197 </td></tr>
3198 </table>
3199 </td></tr></table>
3200 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
3201 <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>
3202 </td></tr></table>
3203 </td></tr></table>
3204 <hr width="75%">
3205 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3206 <td width="100%"></td>
3207 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3208
3209 <table align=center width="75%"><tr><td>
3210 <h4><a name="FT_Get_Char_Index">FT_Get_Char_Index</a></h4>
3211 <table align=center width="87%"><tr><td>
3212 Defined in FT_FREETYPE_H (freetype/freetype.h).
3213 </td></tr></table><br>
3214 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
3215
3216   FT_EXPORT( <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a> )
3217   <b>FT_Get_Char_Index</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>   face,
3218                      <a href="ft2-basic_types.html#FT_ULong">FT_ULong</a>  charcode );
3219
3220 </pre></table><br>
3221 <table align=center width="87%"><tr><td>
3222 <p>Return the glyph index of a given character code. This function uses a charmap object to do the mapping.</p>
3223 </td></tr></table><br>
3224 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
3225 <p></p>
3226 <table cellpadding=3 border=0>
3227 <tr valign=top><td><b>face</b></td><td>
3228 <p>A handle to the source face object.</p>
3229 </td></tr>
3230 <tr valign=top><td><b>charcode</b></td><td>
3231 <p>The character code.</p>
3232 </td></tr>
3233 </table>
3234 </td></tr></table>
3235 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
3236 <p>The glyph index. 0&nbsp;means &lsquo;undefined character code&rsquo;.</p>
3237 </td></tr></table>
3238 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
3239 <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>
3240 </td></tr></table>
3241 </td></tr></table>
3242 <hr width="75%">
3243 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3244 <td width="100%"></td>
3245 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3246
3247 <table align=center width="75%"><tr><td>
3248 <h4><a name="FT_Get_First_Char">FT_Get_First_Char</a></h4>
3249 <table align=center width="87%"><tr><td>
3250 Defined in FT_FREETYPE_H (freetype/freetype.h).
3251 </td></tr></table><br>
3252 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
3253
3254   FT_EXPORT( <a href="ft2-basic_types.html#FT_ULong">FT_ULong</a> )
3255   <b>FT_Get_First_Char</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>   face,
3256                      <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>  *agindex );
3257
3258 </pre></table><br>
3259 <table align=center width="87%"><tr><td>
3260 <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>
3261 </td></tr></table><br>
3262 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
3263 <p></p>
3264 <table cellpadding=3 border=0>
3265 <tr valign=top><td><b>face</b></td><td>
3266 <p>A handle to the source face object.</p>
3267 </td></tr>
3268 </table>
3269 </td></tr></table>
3270 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
3271 <p></p>
3272 <table cellpadding=3 border=0>
3273 <tr valign=top><td><b>agindex</b></td><td>
3274 <p>Glyph index of first character code. 0&nbsp;if charmap is empty.</p>
3275 </td></tr>
3276 </table>
3277 </td></tr></table>
3278 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
3279 <p>The charmap's first character code.</p>
3280 </td></tr></table>
3281 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
3282 <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>
3283 <pre class="colored">
3284   FT_ULong  charcode;                                              
3285   FT_UInt   gindex;                                                
3286                                                                    
3287                                                                    
3288   charcode = FT_Get_First_Char( face, &amp;gindex );                   
3289   while ( gindex != 0 )                                            
3290   {                                                                
3291     ... do something with (charcode,gindex) pair ...               
3292                                                                    
3293     charcode = FT_Get_Next_Char( face, charcode, &amp;gindex );        
3294   }                                                                
3295 </pre>
3296 <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>
3297 </td></tr></table>
3298 </td></tr></table>
3299 <hr width="75%">
3300 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3301 <td width="100%"></td>
3302 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3303
3304 <table align=center width="75%"><tr><td>
3305 <h4><a name="FT_Get_Next_Char">FT_Get_Next_Char</a></h4>
3306 <table align=center width="87%"><tr><td>
3307 Defined in FT_FREETYPE_H (freetype/freetype.h).
3308 </td></tr></table><br>
3309 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
3310
3311   FT_EXPORT( <a href="ft2-basic_types.html#FT_ULong">FT_ULong</a> )
3312   <b>FT_Get_Next_Char</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>    face,
3313                     <a href="ft2-basic_types.html#FT_ULong">FT_ULong</a>   char_code,
3314                     <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>   *agindex );
3315
3316 </pre></table><br>
3317 <table align=center width="87%"><tr><td>
3318 <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>
3319 </td></tr></table><br>
3320 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
3321 <p></p>
3322 <table cellpadding=3 border=0>
3323 <tr valign=top><td><b>face</b></td><td>
3324 <p>A handle to the source face object.</p>
3325 </td></tr>
3326 <tr valign=top><td><b>char_code</b></td><td>
3327 <p>The starting character code.</p>
3328 </td></tr>
3329 </table>
3330 </td></tr></table>
3331 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
3332 <p></p>
3333 <table cellpadding=3 border=0>
3334 <tr valign=top><td><b>agindex</b></td><td>
3335 <p>Glyph index of next character code. 0&nbsp;if charmap is empty.</p>
3336 </td></tr>
3337 </table>
3338 </td></tr></table>
3339 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
3340 <p>The charmap's next character code.</p>
3341 </td></tr></table>
3342 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
3343 <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>
3344 <p>Note that &lsquo;*agindex&rsquo; is set to&nbsp;0 when there are no more codes in the charmap.</p>
3345 </td></tr></table>
3346 </td></tr></table>
3347 <hr width="75%">
3348 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3349 <td width="100%"></td>
3350 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3351
3352 <table align=center width="75%"><tr><td>
3353 <h4><a name="FT_Get_Name_Index">FT_Get_Name_Index</a></h4>
3354 <table align=center width="87%"><tr><td>
3355 Defined in FT_FREETYPE_H (freetype/freetype.h).
3356 </td></tr></table><br>
3357 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
3358
3359   FT_EXPORT( <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a> )
3360   <b>FT_Get_Name_Index</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>     face,
3361                      <a href="ft2-basic_types.html#FT_String">FT_String</a>*  glyph_name );
3362
3363 </pre></table><br>
3364 <table align=center width="87%"><tr><td>
3365 <p>Return the glyph index of a given glyph name. This function uses driver specific objects to do the translation.</p>
3366 </td></tr></table><br>
3367 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
3368 <p></p>
3369 <table cellpadding=3 border=0>
3370 <tr valign=top><td><b>face</b></td><td>
3371 <p>A handle to the source face object.</p>
3372 </td></tr>
3373 <tr valign=top><td><b>glyph_name</b></td><td>
3374 <p>The glyph name.</p>
3375 </td></tr>
3376 </table>
3377 </td></tr></table>
3378 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
3379 <p>The glyph index. 0&nbsp;means &lsquo;undefined character code&rsquo;.</p>
3380 </td></tr></table>
3381 </td></tr></table>
3382 <hr width="75%">
3383 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3384 <td width="100%"></td>
3385 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3386
3387 <table align=center width="75%"><tr><td>
3388 <h4><a name="FT_SUBGLYPH_FLAG_XXX">FT_SUBGLYPH_FLAG_XXX</a></h4>
3389 <table align=center width="87%"><tr><td>
3390 Defined in FT_FREETYPE_H (freetype/freetype.h).
3391 </td></tr></table><br>
3392 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
3393
3394 #define <a href="ft2-base_interface.html#FT_SUBGLYPH_FLAG_XXX">FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS</a>          1
3395 #define <a href="ft2-base_interface.html#FT_SUBGLYPH_FLAG_XXX">FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES</a>      2
3396 #define <a href="ft2-base_interface.html#FT_SUBGLYPH_FLAG_XXX">FT_SUBGLYPH_FLAG_ROUND_XY_TO_GRID</a>        4
3397 #define <a href="ft2-base_interface.html#FT_SUBGLYPH_FLAG_XXX">FT_SUBGLYPH_FLAG_SCALE</a>                   8
3398 #define <a href="ft2-base_interface.html#FT_SUBGLYPH_FLAG_XXX">FT_SUBGLYPH_FLAG_XY_SCALE</a>             0x40
3399 #define <a href="ft2-base_interface.html#FT_SUBGLYPH_FLAG_XXX">FT_SUBGLYPH_FLAG_2X2</a>                  0x80
3400 #define <a href="ft2-base_interface.html#FT_SUBGLYPH_FLAG_XXX">FT_SUBGLYPH_FLAG_USE_MY_METRICS</a>      0x200
3401
3402 </pre></table><br>
3403 <table align=center width="87%"><tr><td>
3404 <p>A list of constants used to describe subglyphs. Please refer to the TrueType specification for the meaning of the various flags.</p>
3405 </td></tr></table><br>
3406 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td>
3407 <p></p>
3408 <table cellpadding=3 border=0>
3409 <tr valign=top><td colspan=0><b>FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS</b></td></tr>
3410 <tr valign=top><td></td><td>
3411 <p></p>
3412 </td></tr>
3413 <tr valign=top><td colspan=0><b>FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES</b></td></tr>
3414 <tr valign=top><td></td><td>
3415 <p></p>
3416 </td></tr>
3417 <tr valign=top><td colspan=0><b>FT_SUBGLYPH_FLAG_ROUND_XY_TO_GRID</b></td></tr>
3418 <tr valign=top><td></td><td>
3419 <p></p>
3420 </td></tr>
3421 <tr valign=top><td><b>FT_SUBGLYPH_FLAG_SCALE</b></td><td>
3422 <p></p>
3423 </td></tr>
3424 <tr valign=top><td colspan=0><b>FT_SUBGLYPH_FLAG_XY_SCALE</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_2X2</b></td><td>
3429 <p></p>
3430 </td></tr>
3431 <tr valign=top><td colspan=0><b>FT_SUBGLYPH_FLAG_USE_MY_METRICS</b></td></tr>
3432 <tr valign=top><td></td><td>
3433 <p></p>
3434 </td></tr>
3435 </table>
3436 </td></tr></table>
3437 </td></tr></table>
3438 <hr width="75%">
3439 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3440 <td width="100%"></td>
3441 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3442
3443 <table align=center width="75%"><tr><td>
3444 <h4><a name="FT_Get_SubGlyph_Info">FT_Get_SubGlyph_Info</a></h4>
3445 <table align=center width="87%"><tr><td>
3446 Defined in FT_FREETYPE_H (freetype/freetype.h).
3447 </td></tr></table><br>
3448 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
3449
3450   FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
3451   <b>FT_Get_SubGlyph_Info</b>( <a href="ft2-base_interface.html#FT_GlyphSlot">FT_GlyphSlot</a>  glyph,
3452                         <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>       sub_index,
3453                         <a href="ft2-basic_types.html#FT_Int">FT_Int</a>       *p_index,
3454                         <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>      *p_flags,
3455                         <a href="ft2-basic_types.html#FT_Int">FT_Int</a>       *p_arg1,
3456                         <a href="ft2-basic_types.html#FT_Int">FT_Int</a>       *p_arg2,
3457                         <a href="ft2-basic_types.html#FT_Matrix">FT_Matrix</a>    *p_transform );
3458
3459 </pre></table><br>
3460 <table align=center width="87%"><tr><td>
3461 <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>
3462 </td></tr></table><br>
3463 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
3464 <p></p>
3465 <table cellpadding=3 border=0>
3466 <tr valign=top><td><b>glyph</b></td><td>
3467 <p>The source glyph slot.</p>
3468 </td></tr>
3469 <tr valign=top><td><b>sub_index</b></td><td>
3470 <p>The index of the subglyph. Must be less than &lsquo;glyph-&gt;num_subglyphs&rsquo;.</p>
3471 </td></tr>
3472 </table>
3473 </td></tr></table>
3474 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
3475 <p></p>
3476 <table cellpadding=3 border=0>
3477 <tr valign=top><td><b>p_index</b></td><td>
3478 <p>The glyph index of the subglyph.</p>
3479 </td></tr>
3480 <tr valign=top><td><b>p_flags</b></td><td>
3481 <p>The subglyph flags, see <a href="ft2-base_interface.html#FT_SUBGLYPH_FLAG_XXX">FT_SUBGLYPH_FLAG_XXX</a>.</p>
3482 </td></tr>
3483 <tr valign=top><td><b>p_arg1</b></td><td>
3484 <p>The subglyph's first argument (if any).</p>
3485 </td></tr>
3486 <tr valign=top><td><b>p_arg2</b></td><td>
3487 <p>The subglyph's second argument (if any).</p>
3488 </td></tr>
3489 <tr valign=top><td><b>p_transform</b></td><td>
3490 <p>The subglyph transformation (if any).</p>
3491 </td></tr>
3492 </table>
3493 </td></tr></table>
3494 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
3495 <p>FreeType error code. 0&nbsp;means success.</p>
3496 </td></tr></table>
3497 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
3498 <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>
3499 </td></tr></table>
3500 </td></tr></table>
3501 <hr width="75%">
3502 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3503 <td width="100%"></td>
3504 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3505
3506 <table align=center width="75%"><tr><td>
3507 <h4><a name="FT_FSTYPE_XXX">FT_FSTYPE_XXX</a></h4>
3508 <table align=center width="87%"><tr><td>
3509 Defined in FT_FREETYPE_H (freetype/freetype.h).
3510 </td></tr></table><br>
3511 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
3512
3513 #define <a href="ft2-base_interface.html#FT_FSTYPE_XXX">FT_FSTYPE_INSTALLABLE_EMBEDDING</a>         0x0000
3514 #define <a href="ft2-base_interface.html#FT_FSTYPE_XXX">FT_FSTYPE_RESTRICTED_LICENSE_EMBEDDING</a>  0x0002
3515 #define <a href="ft2-base_interface.html#FT_FSTYPE_XXX">FT_FSTYPE_PREVIEW_AND_PRINT_EMBEDDING</a>   0x0004
3516 #define <a href="ft2-base_interface.html#FT_FSTYPE_XXX">FT_FSTYPE_EDITABLE_EMBEDDING</a>            0x0008
3517 #define <a href="ft2-base_interface.html#FT_FSTYPE_XXX">FT_FSTYPE_NO_SUBSETTING</a>                 0x0100
3518 #define <a href="ft2-base_interface.html#FT_FSTYPE_XXX">FT_FSTYPE_BITMAP_EMBEDDING_ONLY</a>         0x0200
3519
3520 </pre></table><br>
3521 <table align=center width="87%"><tr><td>
3522 <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>
3523 <p>See http://www.adobe.com/devnet/acrobat/pdfs/FontPolicies.pdf for more details.</p>
3524 </td></tr></table><br>
3525 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td>
3526 <p></p>
3527 <table cellpadding=3 border=0>
3528 <tr valign=top><td colspan=0><b>FT_FSTYPE_INSTALLABLE_EMBEDDING</b></td></tr>
3529 <tr valign=top><td></td><td>
3530 <p>Fonts with no fsType bit set may be embedded and permanently installed on the remote system by an application.</p>
3531 </td></tr>
3532 <tr valign=top><td colspan=0><b>FT_FSTYPE_RESTRICTED_LICENSE_EMBEDDING</b></td></tr>
3533 <tr valign=top><td></td><td>
3534 <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>
3535 </td></tr>
3536 <tr valign=top><td colspan=0><b>FT_FSTYPE_PREVIEW_AND_PRINT_EMBEDDING</b></td></tr>
3537 <tr valign=top><td></td><td>
3538 <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>
3539 </td></tr>
3540 <tr valign=top><td colspan=0><b>FT_FSTYPE_EDITABLE_EMBEDDING</b></td></tr>
3541 <tr valign=top><td></td><td>
3542 <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>
3543 </td></tr>
3544 <tr valign=top><td colspan=0><b>FT_FSTYPE_NO_SUBSETTING</b></td></tr>
3545 <tr valign=top><td></td><td>
3546 <p>If this bit is set, the font may not be subsetted prior to embedding.</p>
3547 </td></tr>
3548 <tr valign=top><td colspan=0><b>FT_FSTYPE_BITMAP_EMBEDDING_ONLY</b></td></tr>
3549 <tr valign=top><td></td><td>
3550 <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>
3551 </td></tr>
3552 </table>
3553 </td></tr></table>
3554 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
3555 <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>
3556 </td></tr></table>
3557 </td></tr></table>
3558 <hr width="75%">
3559 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3560 <td width="100%"></td>
3561 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3562
3563 <table align=center width="75%"><tr><td>
3564 <h4><a name="FT_Get_FSType_Flags">FT_Get_FSType_Flags</a></h4>
3565 <table align=center width="87%"><tr><td>
3566 Defined in FT_FREETYPE_H (freetype/freetype.h).
3567 </td></tr></table><br>
3568 <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
3569
3570   FT_EXPORT( <a href="ft2-basic_types.html#FT_UShort">FT_UShort</a> )
3571   <b>FT_Get_FSType_Flags</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a>  face );
3572
3573 </pre></table><br>
3574 <table align=center width="87%"><tr><td>
3575 <p>Return the fsType flags for a font.</p>
3576 </td></tr></table><br>
3577 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
3578 <p></p>
3579 <table cellpadding=3 border=0>
3580 <tr valign=top><td><b>face</b></td><td>
3581 <p>A handle to the source face object.</p>
3582 </td></tr>
3583 </table>
3584 </td></tr></table>
3585 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
3586 <p>The fsType flags, <a href="ft2-base_interface.html#FT_FSTYPE_XXX">FT_FSTYPE_XXX</a>.</p>
3587 </td></tr></table>
3588 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
3589 <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>
3590 </td></tr></table>
3591 </td></tr></table>
3592 <hr width="75%">
3593 <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
3594 <td width="100%"></td>
3595 <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
3596
3597 </body>
3598 </html>