4349 |
Serge |
1 |
|
|
|
2 |
"http://www.w3.org/TR/html4/loose.dtd"> |
|
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
FreeType-2.5.0 API Reference |
|
|
7 |
|
|
|
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 |
|
|
|
32 |
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
|
38 |
FreeType-2.5.0 API Reference
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
SFNT Names |
|
|
42 |
|
|
|
43 |
Synopsis
|
|
|
44 |
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
The TrueType and OpenType specifications allow the inclusion of a special ‘names table’ in font files. This table contains textual (and internationalized) information regarding the font, like family name, copyright, version, etc.
|
|
|
54 |
The definitions below are used to access them if available.
|
|
|
55 |
Note that this has nothing to do with glyph names!
|
|
|
56 |
|
|
|
|
57 |
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
Defined in FT_SFNT_NAMES_H (freetype/ftsnames.h). |
|
|
61 |
|
|
|
|
62 |
|
|
|
77 |
|
|
|
78 |
A structure used to model an SFNT ‘name’ table entry.
|
|
|
79 |
|
|
|
|
80 |
fields | |
|
|
81 |
|
|
|
82 |
|
|
83 |
platform_id | |
|
|
84 |
The platform ID for ‘string’.
|
|
|
85 |
|
|
|
|
86 |
encoding_id | |
|
|
87 |
The encoding ID for ‘string’.
|
|
|
88 |
|
|
|
|
89 |
language_id | |
|
|
90 |
The language ID for ‘string’.
|
|
|
91 |
|
|
|
|
92 |
name_id | |
|
|
93 |
An identifier for ‘string’.
|
|
|
94 |
|
|
|
|
95 |
string | |
|
|
96 |
The ‘name’ string. Note that its format differs depending on the (platform,encoding) pair. It can be a Pascal String, a UTF-16 one, etc.
|
|
|
97 |
Generally speaking, the string is not zero-terminated. Please refer to the TrueType specification for details.
|
|
|
98 |
|
|
|
|
99 |
string_len | |
|
|
100 |
The length of ‘string’ in bytes.
|
|
|
101 |
|
|
|
|
102 |
| |
|
|
103 |
|
|
|
|
104 |
|
|
|
108 |
|
|
|
|
109 |
|
|
|
110 |
|
|
|
113 |
|
|
|
114 |
|
|
|
115 |
|
|
|
116 |
|
|
|
117 |
Defined in FT_SFNT_NAMES_H (freetype/ftsnames.h). |
|
|
118 |
|
|
|
|
119 |
|
|
|
125 |
|
|
|
126 |
Retrieve the number of name strings in the SFNT ‘name’ table.
|
|
|
127 |
|
|
|
|
128 |
|
|
|
136 |
return | |
|
|
137 |
The number of strings in the ‘name’ table.
|
|
|
138 |
|
|
|
|
139 |
|
|
|
|
140 |
|
|
|
141 |
|
|
|
144 |
|
|
|
145 |
|
|
|
146 |
|
|
|
147 |
|
|
|
148 |
Defined in FT_SFNT_NAMES_H (freetype/ftsnames.h). |
|
|
149 |
|
|
|
|
150 |
|
|
|
158 |
|
|
|
159 |
Retrieve a string of the SFNT ‘name’ table for a given index.
|
|
|
160 |
|
|
|
|
161 |
|
|
|
172 |
|
|
|
180 |
return | |
|
|
181 |
FreeType error code. 0 means success.
|
|
|
182 |
|
|
|
|
183 |
note | |
|
|
184 |
The ‘string’ array returned in the ‘aname’ structure is not null-terminated. The application should deallocate it if it is no longer in use.
|
|
|
185 |
Use FT_Get_Sfnt_Name_Count to get the total number of available ‘name’ table entries, then do a loop until you get the right platform, encoding, and name ID.
|
|
|
186 |
|
|
|
|
187 |
|
|
|
|
188 |
|
|
|
189 |
|
|
|
192 |
|
|
|
193 |
|
|
|
194 |
|
|
|
195 |
|
|
|
196 |
Defined in FT_SFNT_NAMES_H (freetype/ftsnames.h). |
|
|
197 |
|
|
|
|
198 |
|
|
|
203 |
|
|
|
204 |
A constant used as the tag of FT_Parameter structures to make FT_Open_Face() ignore preferred family subfamily names in ‘name’ table since OpenType version 1.4. For backwards compatibility with legacy systems which has 4-face-per-family restriction.
|
|
|
205 |
|
|
|
|
206 |
|
|
|
|
207 |
|
|
|
208 |
|
|
|
211 |
|
|
|
212 |
|
|
|
213 |
|
|
|
214 |
|
|
|
215 |
Defined in FT_SFNT_NAMES_H (freetype/ftsnames.h). |
|
|
216 |
|
|
|
|
217 |
|
|
|
222 |
|
|
|
223 |
A constant used as the tag of FT_Parameter structures to make FT_Open_Face() ignore preferred subfamily names in ‘name’ table since OpenType version 1.4. For backwards compatibility with legacy systems which has 4-face-per-family restriction.
|
|
|
224 |
|
|
|
|
225 |
|
|
|
|
226 |
|
|
|
227 |
|
|
|
230 |
|
|
|
231 |
|
|
|
232 |
|
!DOCTYPE>