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 |
Size Management |
|
|
42 |
|
|
|
43 |
Synopsis
|
|
|
44 |
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
When creating a new face object (e.g., with FT_New_Face), an FT_Size object is automatically created and used to store all pixel-size dependent information, available in the ‘face->size’ field.
|
|
|
50 |
It is however possible to create more sizes for a given face, mostly in order to manage several character pixel sizes of the same font family and style. See FT_New_Size and FT_Done_Size.
|
|
|
51 |
Note that FT_Set_Pixel_Sizes and FT_Set_Char_Size only modify the contents of the current ‘active’ size; you thus need to use FT_Activate_Size to change it.
|
|
|
52 |
99% of applications won't need the functions provided here, especially if they use the caching sub-system, so be cautious when using these.
|
|
|
53 |
|
|
|
|
54 |
|
|
|
55 |
|
|
|
56 |
|
|
|
57 |
Defined in FT_SIZES_H (freetype/ftsizes.h). |
|
|
58 |
|
|
|
|
59 |
|
|
|
66 |
|
|
|
67 |
Create a new size object from a given face object.
|
|
|
68 |
|
|
|
|
69 |
|
|
|
77 |
|
|
|
85 |
return | |
|
|
86 |
FreeType error code. 0 means success.
|
|
|
87 |
|
|
|
|
88 |
|
|
|
91 |
|
|
|
|
92 |
|
|
|
93 |
|
|
|
96 |
|
|
|
97 |
|
|
|
123 |
|
|
|
124 |
|
|
|
127 |
|
|
|
128 |
|
|
|
129 |
|
|
|
130 |
|
|
|
131 |
Defined in FT_SIZES_H (freetype/ftsizes.h). |
|
|
132 |
|
|
|
|
133 |
|
|
|
139 |
|
|
|
140 |
Even though it is possible to create several size objects for a given face (see FT_New_Size for details), functions like FT_Load_Glyph or FT_Load_Char only use the one which has been activated last to determine the ‘current character pixel size’.
|
|
|
141 |
This function can be used to ‘activate’ a previously created size object.
|
|
|
142 |
|
|
|
|
143 |
|
|
|
151 |
return | |
|
|
152 |
FreeType error code. 0 means success.
|
|
|
153 |
|
|
|
|
154 |
note | |
|
|
155 |
If ‘face’ is the size's parent face object, this function changes the value of ‘face->size’ to the input size handle.
|
|
|
156 |
|
|
|
|
157 |
|
|
|
|
158 |
|
|
|
159 |
|
|
|
162 |
|
|
|
163 |
|
|
|
164 |
|
!DOCTYPE>