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