1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6 <title>FreeType-2.6.5 API Reference</title>
7 <style type="text/css">
8 a:link { color: #0000EF; }
9 a:visited { color: #51188E; }
10 a:hover { color: #FF0000; }
12 body { font-family: Verdana, Geneva, Arial, Helvetica, serif;
18 div.section { width: 75%;
20 div.section hr { margin: 4ex 0 1ex 0; }
21 div.section h4 { background-color: #EEEEFF;
25 margin: 3ex 0 1.5ex 9%;
26 padding: 0.3ex 0 0.3ex 1%; }
27 div.section p { margin: 1.5ex 0 1.5ex 10%; }
28 div.section pre { margin: 3ex 0 3ex 9%;
29 background-color: #D6E8FF;
30 padding: 2ex 0 2ex 1%; }
31 div.section table.fields { width: 90%;
32 margin: 1.5ex 0 1.5ex 10%; }
33 div.section table.toc { width: 95%;
34 margin: 1.5ex 0 1.5ex 5%; }
35 div.timestamp { text-align: center;
37 margin: 1.5ex 0 1.5ex 0; }
39 h1 { text-align: center; }
40 h3 { font-size: medium;
41 margin: 4ex 0 1.5ex 0; }
43 p { text-align: justify; }
45 pre.colored { color: blue; }
47 span.keyword { font-family: monospace;
52 table.fields td.val { font-weight: bold;
55 vertical-align: baseline;
56 padding: 1ex 1em 1ex 0; }
57 table.fields td.desc { vertical-align: baseline;
58 padding: 1ex 0 1ex 1em; }
59 table.fields td.desc p:first-child { margin: 0; }
60 table.fields td.desc p { margin: 1.5ex 0 0 0; }
61 table.index { margin: 6ex auto 6ex auto;
63 border-collapse: separate;
64 border-spacing: 1em 0.3ex; }
65 table.index tr { padding: 0; }
66 table.index td { padding: 0; }
67 table.index-toc-link { width: 100%;
70 margin: 1ex 0 1ex 0; }
71 table.index-toc-link td.left { padding: 0 0.5em 0 0.5em;
74 table.index-toc-link td.middle { padding: 0 0.5em 0 0.5em;
77 table.index-toc-link td.right { padding: 0 0.5em 0 0.5em;
80 table.synopsis { margin: 6ex auto 6ex auto;
82 border-collapse: separate;
83 border-spacing: 2em 0.6ex; }
84 table.synopsis tr { padding: 0; }
85 table.synopsis td { padding: 0; }
86 table.toc td.link { width: 30%;
88 vertical-align: baseline;
89 padding: 1ex 1em 1ex 0; }
90 table.toc td.desc { vertical-align: baseline;
91 padding: 1ex 0 1ex 1em;
93 table.toc td.desc p:first-child { margin: 0;
95 table.toc td.desc p { margin: 1.5ex 0 0 0;
102 <table class="index-toc-link"><tr><td class="left">[<a href="ft2-index.html">Index</a>]</td><td class="right">[<a href="ft2-toc.html">TOC</a>]</td></tr></table>
103 <h1>FreeType-2.6.5 API Reference</h1>
105 <h1 id="version">FreeType Version</h1>
107 <table class="synopsis">
108 <tr><td><a href="#FT_Library_Version">FT_Library_Version</a></td><td> </td></tr>
109 <tr><td> </td><td><a href="#FT_Face_CheckTrueTypePatents">FT_Face_CheckTrueTypePatents</a></td></tr>
110 <tr><td><a href="#FREETYPE_MAJOR">FREETYPE_MAJOR</a></td><td><a href="#FT_Face_SetUnpatentedHinting">FT_Face_SetUnpatentedHinting</a></td></tr>
111 <tr><td><a href="#FREETYPE_MINOR">FREETYPE_MINOR</a></td><td> </td></tr>
112 <tr><td><a href="#FREETYPE_PATCH">FREETYPE_PATCH</a></td><td><a href="#FREETYPE_XXX">FREETYPE_XXX</a></td></tr>
116 <p>Note that those functions and macros are of limited use because even a new release of FreeType with only documentation changes increases the version number.</p>
118 <div class="section">
119 <h3 id="FT_Library_Version">FT_Library_Version</h3>
120 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
122 FT_EXPORT( <span class="keyword">void</span> )
123 <b>FT_Library_Version</b>( <a href="ft2-base_interface.html#FT_Library">FT_Library</a> library,
124 <a href="ft2-basic_types.html#FT_Int">FT_Int</a> *amajor,
125 <a href="ft2-basic_types.html#FT_Int">FT_Int</a> *aminor,
126 <a href="ft2-basic_types.html#FT_Int">FT_Int</a> *apatch );
129 <p>Return the version of the FreeType library being used. This is useful when dynamically linking to the library, since one cannot use the macros <a href="ft2-version.html#FREETYPE_XXX">FREETYPE_MAJOR</a>, <a href="ft2-version.html#FREETYPE_XXX">FREETYPE_MINOR</a>, and <a href="ft2-version.html#FREETYPE_XXX">FREETYPE_PATCH</a>.</p>
132 <table class="fields">
133 <tr><td class="val" id="library">library</td><td class="desc">
134 <p>A source library handle.</p>
139 <table class="fields">
140 <tr><td class="val" id="amajor">amajor</td><td class="desc">
141 <p>The major version number.</p>
143 <tr><td class="val" id="aminor">aminor</td><td class="desc">
144 <p>The minor version number.</p>
146 <tr><td class="val" id="apatch">apatch</td><td class="desc">
147 <p>The patch version number.</p>
152 <p>The reason why this function takes a ‘library’ argument is because certain programs implement library initialization in a custom way that doesn't use <a href="ft2-base_interface.html#FT_Init_FreeType">FT_Init_FreeType</a>.</p>
153 <p>In such cases, the library version might not be available before the library object has been created.</p>
156 <table class="index-toc-link"><tr><td class="left">[<a href="ft2-index.html">Index</a>]</td><td class="middle">[<a href="#">Top</a>]</td><td class="right">[<a href="ft2-toc.html">TOC</a>]</td></tr></table></div>
158 <div class="section">
159 <h3 id="FT_Face_CheckTrueTypePatents">FT_Face_CheckTrueTypePatents</h3>
160 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
162 FT_EXPORT( <a href="ft2-basic_types.html#FT_Bool">FT_Bool</a> )
163 <b>FT_Face_CheckTrueTypePatents</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a> face );
166 <p>Deprecated, does nothing.</p>
169 <table class="fields">
170 <tr><td class="val" id="face">face</td><td class="desc">
171 <p>A face handle.</p>
176 <p>Always returns false.</p>
179 <p>Since May 2010, TrueType hinting is no longer patented.</p>
185 <table class="index-toc-link"><tr><td class="left">[<a href="ft2-index.html">Index</a>]</td><td class="middle">[<a href="#">Top</a>]</td><td class="right">[<a href="ft2-toc.html">TOC</a>]</td></tr></table></div>
187 <div class="section">
188 <h3 id="FT_Face_SetUnpatentedHinting">FT_Face_SetUnpatentedHinting</h3>
189 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
191 FT_EXPORT( <a href="ft2-basic_types.html#FT_Bool">FT_Bool</a> )
192 <b>FT_Face_SetUnpatentedHinting</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a> face,
193 <a href="ft2-basic_types.html#FT_Bool">FT_Bool</a> value );
196 <p>Deprecated, does nothing.</p>
199 <table class="fields">
200 <tr><td class="val" id="face">face</td><td class="desc">
201 <p>A face handle.</p>
203 <tr><td class="val" id="value">value</td><td class="desc">
204 <p>New boolean setting.</p>
209 <p>Always returns false.</p>
212 <p>Since May 2010, TrueType hinting is no longer patented.</p>
218 <table class="index-toc-link"><tr><td class="left">[<a href="ft2-index.html">Index</a>]</td><td class="middle">[<a href="#">Top</a>]</td><td class="right">[<a href="ft2-toc.html">TOC</a>]</td></tr></table></div>
220 <div class="section">
221 <h3 id="FREETYPE_XXX">FREETYPE_XXX</h3>
222 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
224 #define <a href="ft2-version.html#FREETYPE_MAJOR">FREETYPE_MAJOR</a> 2
225 #define <a href="ft2-version.html#FREETYPE_MINOR">FREETYPE_MINOR</a> 6
226 #define <a href="ft2-version.html#FREETYPE_PATCH">FREETYPE_PATCH</a> 5
229 <p>These three macros identify the FreeType source code version. Use <a href="ft2-version.html#FT_Library_Version">FT_Library_Version</a> to access them at runtime.</p>
232 <table class="fields">
233 <tr><td class="val" id="FREETYPE_MAJOR">FREETYPE_MAJOR</td><td class="desc">
234 <p>The major version number.</p>
236 <tr><td class="val" id="FREETYPE_MINOR">FREETYPE_MINOR</td><td class="desc">
237 <p>The minor version number.</p>
239 <tr><td class="val" id="FREETYPE_PATCH">FREETYPE_PATCH</td><td class="desc">
240 <p>The patch level.</p>
245 <p>The version number of FreeType if built as a dynamic link library with the ‘libtool’ package is <i>not</i> controlled by these three macros.</p>
248 <table class="index-toc-link"><tr><td class="left">[<a href="ft2-index.html">Index</a>]</td><td class="middle">[<a href="#">Top</a>]</td><td class="right">[<a href="ft2-toc.html">TOC</a>]</td></tr></table></div>