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 |
PFR Fonts |
|
|
42 |
|
|
|
43 |
Synopsis
|
|
|
44 |
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
This section contains the declaration of PFR-specific functions.
|
|
|
50 |
|
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
|
|
|
54 |
Defined in FT_PFR_H (freetype/ftpfr.h). |
|
|
55 |
|
|
|
|
56 |
|
|
|
66 |
|
|
|
67 |
Return the outline and metrics resolutions of a given PFR face.
|
|
|
68 |
|
|
|
|
69 |
input | |
|
|
70 |
|
|
|
71 |
|
|
72 |
face | |
|
|
73 |
Handle to the input face. It can be a non-PFR face.
|
|
|
74 |
|
|
|
|
75 |
| |
|
|
76 |
|
|
|
|
77 |
output | |
|
|
78 |
|
|
|
79 |
|
|
80 |
aoutline_resolution | |
|
|
81 |
Outline resolution. This is equivalent to ‘face->units_per_EM’ for non-PFR fonts. Optional (parameter can be NULL).
|
|
|
82 |
|
|
|
|
83 |
ametrics_resolution | |
|
|
84 |
Metrics resolution. This is equivalent to ‘outline_resolution’ for non-PFR fonts. Optional (parameter can be NULL).
|
|
|
85 |
|
|
|
|
86 |
ametrics_x_scale | |
|
|
87 |
A 16.16 fixed-point number used to scale distance expressed in metrics units to device sub-pixels. This is equivalent to ‘face->size->x_scale’, but for metrics only. Optional (parameter can be NULL).
|
|
|
88 |
|
|
|
|
89 |
ametrics_y_scale | |
|
|
90 |
Same as ‘ametrics_x_scale’ but for the vertical direction. optional (parameter can be NULL).
|
|
|
91 |
|
|
|
|
92 |
| |
|
|
93 |
|
|
|
|
94 |
return | |
|
|
95 |
FreeType error code. 0 means success.
|
|
|
96 |
|
|
|
|
97 |
note | |
|
|
98 |
If the input face is not a PFR, this function will return an error. However, in all cases, it will return valid values.
|
|
|
99 |
|
|
|
|
100 |
|
|
|
|
101 |
|
|
|
102 |
|
|
|
105 |
|
|
|
106 |
|
|
|
107 |
|
|
|
108 |
|
|
|
109 |
Defined in FT_PFR_H (freetype/ftpfr.h). |
|
|
110 |
|
|
|
|
111 |
|
|
|
120 |
|
|
|
121 |
Return the kerning pair corresponding to two glyphs in a PFR face. The distance is expressed in metrics units, unlike the result of FT_Get_Kerning.
|
|
|
122 |
|
|
|
|
123 |
|
|
|
137 |
|
|
|
145 |
return | |
|
|
146 |
FreeType error code. 0 means success.
|
|
|
147 |
|
|
|
|
148 |
note | |
|
|
149 |
This function always return distances in original PFR metrics units. This is unlike FT_Get_Kerning with the FT_KERNING_UNSCALED mode, which always returns distances converted to outline units.
|
|
|
150 |
You can use the value of the ‘x_scale’ and ‘y_scale’ parameters returned by FT_Get_PFR_Metrics to scale these to device sub-pixels.
|
|
|
151 |
|
|
|
|
152 |
|
|
|
|
153 |
|
|
|
154 |
|
|
|
157 |
|
|
|
158 |
|
|
|
159 |
|
|
|
160 |
|
|
|
161 |
Defined in FT_PFR_H (freetype/ftpfr.h). |
|
|
162 |
|
|
|
|
163 |
|
|
|
171 |
|
|
|
172 |
Return a given glyph advance, expressed in original metrics units, from a PFR font.
|
|
|
173 |
|
|
|
|
174 |
|
|
|
185 |
|
|
|
193 |
return | |
|
|
194 |
FreeType error code. 0 means success.
|
|
|
195 |
|
|
|
|
196 |
note | |
|
|
197 |
You can use the ‘x_scale’ or ‘y_scale’ results of FT_Get_PFR_Metrics to convert the advance to device sub-pixels (i.e., 1/64th of pixels).
|
|
|
198 |
|
|
|
|
199 |
|
|
|
|
200 |
|
|
|
201 |
|
|
|
204 |
|
|
|
205 |
|
|
|
206 |
|
!DOCTYPE>