OLD | NEW |
1 /***************************************************************************/ | 1 /***************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* ftpfr.h */ | 3 /* ftpfr.h */ |
4 /* */ | 4 /* */ |
5 /* FreeType API for accessing PFR-specific data (specification only). */ | 5 /* FreeType API for accessing PFR-specific data (specification only). */ |
6 /* */ | 6 /* */ |
7 /* Copyright 2002, 2003, 2004, 2006, 2008, 2009 by */ | 7 /* Copyright 2002, 2003, 2004, 2006, 2008, 2009 by */ |
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ | 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
9 /* */ | 9 /* */ |
10 /* This file is part of the FreeType project, and may only be used, */ | 10 /* This file is part of the FreeType project, and may only be used, */ |
11 /* modified, and distributed under the terms of the FreeType project */ | 11 /* modified, and distributed under the terms of the FreeType project */ |
12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ | 12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
13 /* this file you indicate that you have read the license and */ | 13 /* this file you indicate that you have read the license and */ |
14 /* understand and accept it fully. */ | 14 /* understand and accept it fully. */ |
15 /* */ | 15 /* */ |
16 /***************************************************************************/ | 16 /***************************************************************************/ |
17 | 17 |
18 | 18 |
19 #ifndef __FTPFR_H__ | 19 #ifndef __FTPFR_H__ |
20 #define __FTPFR_H__ | 20 #define __FTPFR_H__ |
21 | 21 |
22 #include "../ft2build.h" | 22 #include <ft2build.h> |
23 #include "freetype.h" | 23 #include FT_FREETYPE_H |
24 | 24 |
25 #ifdef FREETYPE_H | 25 #ifdef FREETYPE_H |
26 #error "freetype.h of FreeType 1 has been loaded!" | 26 #error "freetype.h of FreeType 1 has been loaded!" |
27 #error "Please fix the directory search order for header files" | 27 #error "Please fix the directory search order for header files" |
28 #error "so that freetype.h of FreeType 2 is found first." | 28 #error "so that freetype.h of FreeType 2 is found first." |
29 #endif | 29 #endif |
30 | 30 |
31 | 31 |
32 FT_BEGIN_HEADER | 32 FT_BEGIN_HEADER |
33 | 33 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 * | 154 * |
155 * @note: | 155 * @note: |
156 * You can use the `x_scale' or `y_scale' results of @FT_Get_PFR_Metrics | 156 * You can use the `x_scale' or `y_scale' results of @FT_Get_PFR_Metrics |
157 * to convert the advance to device sub-pixels (i.e., 1/64th of pixels). | 157 * to convert the advance to device sub-pixels (i.e., 1/64th of pixels). |
158 */ | 158 */ |
159 FT_EXPORT( FT_Error ) | 159 FT_EXPORT( FT_Error ) |
160 FT_Get_PFR_Advance( FT_Face face, | 160 FT_Get_PFR_Advance( FT_Face face, |
161 FT_UInt gindex, | 161 FT_UInt gindex, |
162 FT_Pos *aadvance ); | 162 FT_Pos *aadvance ); |
163 | 163 |
164 /* */ | 164 /* */ |
165 | 165 |
166 | 166 |
167 FT_END_HEADER | 167 FT_END_HEADER |
168 | 168 |
169 #endif /* __FTPFR_H__ */ | 169 #endif /* __FTPFR_H__ */ |
170 | 170 |
171 | 171 |
172 /* END */ | 172 /* END */ |
OLD | NEW |