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.3.9 API Reference</title>
7
<style type="text/css">
8
body { font-family: Verdana, Geneva, Arial, Helvetica, serif;
10
background: #FFFFFF; }
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;
19
a:link { color: #0000EF; }
20
a:visited { color: #51188E; }
21
a:hover { color: #FF0000; }
23
span.keyword { font-family: monospace;
28
pre.colored { color: blue; }
30
ul.empty { list-style-type: none; }
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.3.9 API Reference</h1></center>
44
<table align=center cellspacing=5 cellpadding=0 border=0>
45
<tr><td></td><td><a href="#FT_PropertyType">FT_PropertyType</a></td><td></td><td><a href="#BDF_PropertyRec">BDF_PropertyRec</a></td><td></td><td><a href="#FT_Get_BDF_Property">FT_Get_BDF_Property</a></td></tr>
46
<tr><td></td><td><a href="#BDF_Property">BDF_Property</a></td><td></td><td><a href="#FT_Get_BDF_Charset_ID">FT_Get_BDF_Charset_ID</a></td><td></td><td></td></tr>
49
<table align=center width="87%"><tr><td>
50
<p>This section contains the declaration of functions specific to BDF and PCF fonts.</p>
51
</td></tr></table><br>
52
<table align=center width="75%"><tr><td>
53
<h4><a name="FT_PropertyType">FT_PropertyType</a></h4>
54
<table align=center width="87%"><tr><td>
55
Defined in FT_BDF_H (freetype/ftbdf.h).
56
</td></tr></table><br>
57
<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
59
<span class="keyword">typedef</span> <span class="keyword">enum</span> BDF_PropertyType_
61
<a href="ft2-bdf_fonts.html#FT_PropertyType">BDF_PROPERTY_TYPE_NONE</a> = 0,
62
<a href="ft2-bdf_fonts.html#FT_PropertyType">BDF_PROPERTY_TYPE_ATOM</a> = 1,
63
<a href="ft2-bdf_fonts.html#FT_PropertyType">BDF_PROPERTY_TYPE_INTEGER</a> = 2,
64
<a href="ft2-bdf_fonts.html#FT_PropertyType">BDF_PROPERTY_TYPE_CARDINAL</a> = 3
69
<table align=center width="87%"><tr><td>
70
<p>A list of BDF property types.</p>
71
</td></tr></table><br>
72
<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td>
74
<table cellpadding=3 border=0>
75
<tr valign=top><td><b>BDF_PROPERTY_TYPE_NONE</b></td><td>
76
<p>Value 0 is used to indicate a missing property.</p>
78
<tr valign=top><td><b>BDF_PROPERTY_TYPE_ATOM</b></td><td>
79
<p>Property is a string atom.</p>
81
<tr valign=top><td colspan=0><b>BDF_PROPERTY_TYPE_INTEGER</b></td></tr>
82
<tr valign=top><td></td><td>
83
<p>Property is a 32-bit signed integer.</p>
85
<tr valign=top><td colspan=0><b>BDF_PROPERTY_TYPE_CARDINAL</b></td></tr>
86
<tr valign=top><td></td><td>
87
<p>Property is a 32-bit unsigned integer.</p>
93
<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
94
<td width="100%"></td>
95
<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
97
<table align=center width="75%"><tr><td>
98
<h4><a name="BDF_Property">BDF_Property</a></h4>
99
<table align=center width="87%"><tr><td>
100
<p>A handle to a <a href="ft2-bdf_fonts.html#BDF_PropertyRec">BDF_PropertyRec</a> structure to model a given BDF/PCF property.</p>
101
</td></tr></table><br>
104
<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
105
<td width="100%"></td>
106
<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
108
<table align=center width="75%"><tr><td>
109
<h4><a name="BDF_PropertyRec">BDF_PropertyRec</a></h4>
110
<table align=center width="87%"><tr><td>
111
Defined in FT_BDF_H (freetype/ftbdf.h).
112
</td></tr></table><br>
113
<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
115
<span class="keyword">typedef</span> <span class="keyword">struct</span> BDF_PropertyRec_
117
BDF_PropertyType type;
118
<span class="keyword">union</span> {
119
<span class="keyword">const</span> <span class="keyword">char</span>* atom;
120
<a href="ft2-basic_types.html#FT_Int32">FT_Int32</a> integer;
121
<a href="ft2-basic_types.html#FT_UInt32">FT_UInt32</a> cardinal;
125
} <b>BDF_PropertyRec</b>;
128
<table align=center width="87%"><tr><td>
129
<p>This structure models a given BDF/PCF property.</p>
130
</td></tr></table><br>
131
<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>fields</b></em></td></tr><tr><td>
133
<table cellpadding=3 border=0>
134
<tr valign=top><td><b>type</b></td><td>
135
<p>The property type.</p>
137
<tr valign=top><td><b>u.atom</b></td><td>
138
<p>The atom string, if type is <a href="ft2-bdf_fonts.html#FT_PropertyType">BDF_PROPERTY_TYPE_ATOM</a>.</p>
140
<tr valign=top><td><b>u.integer</b></td><td>
141
<p>A signed integer, if type is <a href="ft2-bdf_fonts.html#FT_PropertyType">BDF_PROPERTY_TYPE_INTEGER</a>.</p>
143
<tr valign=top><td><b>u.cardinal</b></td><td>
144
<p>An unsigned integer, if type is <a href="ft2-bdf_fonts.html#FT_PropertyType">BDF_PROPERTY_TYPE_CARDINAL</a>.</p>
150
<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
151
<td width="100%"></td>
152
<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
154
<table align=center width="75%"><tr><td>
155
<h4><a name="FT_Get_BDF_Charset_ID">FT_Get_BDF_Charset_ID</a></h4>
156
<table align=center width="87%"><tr><td>
157
Defined in FT_BDF_H (freetype/ftbdf.h).
158
</td></tr></table><br>
159
<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
161
FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
162
<b>FT_Get_BDF_Charset_ID</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a> face,
163
<span class="keyword">const</span> <span class="keyword">char</span>* *acharset_encoding,
164
<span class="keyword">const</span> <span class="keyword">char</span>* *acharset_registry );
167
<table align=center width="87%"><tr><td>
168
<p>Retrieve a BDF font character set identity, according to the BDF specification.</p>
169
</td></tr></table><br>
170
<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
172
<table cellpadding=3 border=0>
173
<tr valign=top><td><b>face</b></td><td>
174
<p>A handle to the input face.</p>
178
<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
180
<table cellpadding=3 border=0>
181
<tr valign=top><td><b>acharset_encoding</b></td><td>
182
<p>Charset encoding, as a C string, owned by the face.</p>
184
<tr valign=top><td><b>acharset_registry</b></td><td>
185
<p>Charset registry, as a C string, owned by the face.</p>
189
<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
190
<p>FreeType error code. 0 means success.</p>
192
<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
193
<p>This function only works with BDF faces, returning an error otherwise.</p>
197
<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
198
<td width="100%"></td>
199
<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
201
<table align=center width="75%"><tr><td>
202
<h4><a name="FT_Get_BDF_Property">FT_Get_BDF_Property</a></h4>
203
<table align=center width="87%"><tr><td>
204
Defined in FT_BDF_H (freetype/ftbdf.h).
205
</td></tr></table><br>
206
<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
208
FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
209
<b>FT_Get_BDF_Property</b>( <a href="ft2-base_interface.html#FT_Face">FT_Face</a> face,
210
<span class="keyword">const</span> <span class="keyword">char</span>* prop_name,
211
<a href="ft2-bdf_fonts.html#BDF_PropertyRec">BDF_PropertyRec</a> *aproperty );
214
<table align=center width="87%"><tr><td>
215
<p>Retrieve a BDF property from a BDF or PCF font file.</p>
216
</td></tr></table><br>
217
<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
219
<table cellpadding=3 border=0>
220
<tr valign=top><td><b>face</b></td><td>
221
<p>A handle to the input face.</p>
223
<tr valign=top><td><b>name</b></td><td>
224
<p>The property name.</p>
228
<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
230
<table cellpadding=3 border=0>
231
<tr valign=top><td><b>aproperty</b></td><td>
236
<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
237
<p>FreeType error code. 0 means success.</p>
239
<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
240
<p>This function works with BDF <i>and</i> PCF fonts. It returns an error otherwise. It also returns an error if the property is not in the font.</p>
241
<p>A ‘property’ is a either key-value pair within the STARTPROPERTIES ... ENDPROPERTIES block of a BDF font or a key-value pair from the ‘info->props’ array within a ‘FontRec’ structure of a PCF font.</p>
242
<p>Integer properties are always stored as ‘signed’ within PCF fonts; consequently, <a href="ft2-bdf_fonts.html#FT_PropertyType">BDF_PROPERTY_TYPE_CARDINAL</a> is a possible return value for BDF fonts only.</p>
243
<p>In case of error, ‘aproperty->type’ is always set to <a href="ft2-bdf_fonts.html#FT_PropertyType">BDF_PROPERTY_TYPE_NONE</a>.</p>
247
<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
248
<td width="100%"></td>
249
<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>