| OLD | NEW |
| 1 /***************************************************************************/ | 1 /***************************************************************************/ |
| 2 /* */ | 2 /* */ |
| 3 /* ftwinfnt.h */ | 3 /* ftwinfnt.h */ |
| 4 /* */ | 4 /* */ |
| 5 /* FreeType API for accessing Windows fnt-specific data. */ | 5 /* FreeType API for accessing Windows fnt-specific data. */ |
| 6 /* */ | 6 /* */ |
| 7 /* Copyright 2003, 2004, 2008 by */ | 7 /* Copyright 2003, 2004, 2008 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 __FTWINFNT_H__ | 19 #ifndef __FTWINFNT_H__ |
| 20 #define __FTWINFNT_H__ | 20 #define __FTWINFNT_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 17 matching lines...) Expand all Loading... |
| 51 | 51 |
| 52 | 52 |
| 53 /************************************************************************* | 53 /************************************************************************* |
| 54 * | 54 * |
| 55 * @enum: | 55 * @enum: |
| 56 * FT_WinFNT_ID_XXX | 56 * FT_WinFNT_ID_XXX |
| 57 * | 57 * |
| 58 * @description: | 58 * @description: |
| 59 * A list of valid values for the `charset' byte in | 59 * A list of valid values for the `charset' byte in |
| 60 * @FT_WinFNT_HeaderRec. Exact mapping tables for the various cpXXXX | 60 * @FT_WinFNT_HeaderRec. Exact mapping tables for the various cpXXXX |
| 61 * encodings (except for cp1361) can be found at ftp://ftp.unicode.org | 61 * encodings (except for cp1361) can be found at |
| 62 * in the MAPPINGS/VENDORS/MICSFT/WINDOWS subdirectory. cp1361 is | 62 * ftp://ftp.unicode.org/public in the MAPPINGS/VENDORS/MICSFT/WINDOWS |
| 63 * roughly a superset of MAPPINGS/OBSOLETE/EASTASIA/KSC/JOHAB.TXT. | 63 * subdirectory. cp1361 is roughly a superset of |
| 64 * MAPPINGS/OBSOLETE/EASTASIA/KSC/JOHAB.TXT. |
| 64 * | 65 * |
| 65 * @values: | 66 * @values: |
| 66 * FT_WinFNT_ID_DEFAULT :: | 67 * FT_WinFNT_ID_DEFAULT :: |
| 67 * This is used for font enumeration and font creation as a | 68 * This is used for font enumeration and font creation as a |
| 68 * `don't care' value. Valid font files don't contain this value. | 69 * `don't care' value. Valid font files don't contain this value. |
| 69 * When querying for information about the character set of the font | 70 * When querying for information about the character set of the font |
| 70 * that is currently selected into a specified device context, this | 71 * that is currently selected into a specified device context, this |
| 71 * return value (of the related Windows API) simply denotes failure. | 72 * return value (of the related Windows API) simply denotes failure. |
| 72 * | 73 * |
| 73 * FT_WinFNT_ID_SYMBOL :: | 74 * FT_WinFNT_ID_SYMBOL :: |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 * FreeType error code. 0~means success. | 252 * FreeType error code. 0~means success. |
| 252 * | 253 * |
| 253 * @note: | 254 * @note: |
| 254 * This function only works with Windows FNT faces, returning an error | 255 * This function only works with Windows FNT faces, returning an error |
| 255 * otherwise. | 256 * otherwise. |
| 256 */ | 257 */ |
| 257 FT_EXPORT( FT_Error ) | 258 FT_EXPORT( FT_Error ) |
| 258 FT_Get_WinFNT_Header( FT_Face face, | 259 FT_Get_WinFNT_Header( FT_Face face, |
| 259 FT_WinFNT_HeaderRec *aheader ); | 260 FT_WinFNT_HeaderRec *aheader ); |
| 260 | 261 |
| 262 /* */ |
| 261 | 263 |
| 262 /* */ | |
| 263 | 264 |
| 264 FT_END_HEADER | 265 FT_END_HEADER |
| 265 | 266 |
| 266 #endif /* __FTWINFNT_H__ */ | 267 #endif /* __FTWINFNT_H__ */ |
| 267 | 268 |
| 268 | 269 |
| 269 /* END */ | 270 /* END */ |
| 270 | 271 |
| 271 | 272 |
| 272 /* Local Variables: */ | 273 /* Local Variables: */ |
| 273 /* coding: utf-8 */ | 274 /* coding: utf-8 */ |
| 274 /* End: */ | 275 /* End: */ |
| OLD | NEW |