| OLD | NEW |
| 1 /***************************************************************************/ | 1 /***************************************************************************/ |
| 2 /* */ | 2 /* */ |
| 3 /* ftadvanc.h */ | 3 /* ftadvanc.h */ |
| 4 /* */ | 4 /* */ |
| 5 /* Quick computation of advance widths (specification only). */ | 5 /* Quick computation of advance widths (specification only). */ |
| 6 /* */ | 6 /* */ |
| 7 /* Copyright 2008, 2013 by */ | 7 /* Copyright 2008, 2013, 2014 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 __FTADVANC_H__ | 19 #ifndef __FTADVANC_H__ |
| 20 #define __FTADVANC_H__ | 20 #define __FTADVANC_H__ |
| 21 | 21 |
| 22 | 22 |
| 23 #include "../ft2build.h" | 23 #include <ft2build.h> |
| 24 #include "freetype.h" | 24 #include FT_FREETYPE_H |
| 25 | 25 |
| 26 #ifdef FREETYPE_H | 26 #ifdef FREETYPE_H |
| 27 #error "freetype.h of FreeType 1 has been loaded!" | 27 #error "freetype.h of FreeType 1 has been loaded!" |
| 28 #error "Please fix the directory search order for header files" | 28 #error "Please fix the directory search order for header files" |
| 29 #error "so that freetype.h of FreeType 2 is found first." | 29 #error "so that freetype.h of FreeType 2 is found first." |
| 30 #endif | 30 #endif |
| 31 | 31 |
| 32 | 32 |
| 33 FT_BEGIN_HEADER | 33 FT_BEGIN_HEADER |
| 34 | 34 |
| 35 | 35 |
| 36 /************************************************************************** | 36 /************************************************************************** |
| 37 * | 37 * |
| 38 * @section: | 38 * @section: |
| 39 * quick_advance | 39 * quick_advance |
| 40 * | 40 * |
| 41 * @title: | 41 * @title: |
| 42 * Quick retrieval of advance values | 42 * Quick retrieval of advance values |
| 43 * | 43 * |
| 44 * @abstract: | 44 * @abstract: |
| 45 * Retrieve horizontal and vertical advance values without processing | 45 * Retrieve horizontal and vertical advance values without processing |
| 46 * glyph outlines, if possible. | 46 * glyph outlines, if possible. |
| 47 * | 47 * |
| 48 * @description: | 48 * @description: |
| 49 * This section contains functions to quickly extract advance values | 49 * This section contains functions to quickly extract advance values |
| 50 * without handling glyph outlines, if possible. | 50 * without handling glyph outlines, if possible. |
| 51 * |
| 52 * @order: |
| 53 * FT_Get_Advance |
| 54 * FT_Get_Advances |
| 55 * |
| 51 */ | 56 */ |
| 52 | 57 |
| 53 | 58 |
| 54 /*************************************************************************/ | 59 /*************************************************************************/ |
| 55 /* */ | 60 /* */ |
| 56 /* <Const> */ | 61 /* <Const> */ |
| 57 /* FT_ADVANCE_FLAG_FAST_ONLY */ | 62 /* FT_ADVANCE_FLAG_FAST_ONLY */ |
| 58 /* */ | 63 /* */ |
| 59 /* <Description> */ | 64 /* <Description> */ |
| 60 /* A bit-flag to be OR-ed with the `flags' parameter of the */ | 65 /* A bit-flag to be OR-ed with the `flags' parameter of the */ |
| 61 /* @FT_Get_Advance and @FT_Get_Advances functions. */ | 66 /* @FT_Get_Advance and @FT_Get_Advances functions. */ |
| 62 /* */ | 67 /* */ |
| 63 /* If set, it indicates that you want these functions to fail if the */ | 68 /* If set, it indicates that you want these functions to fail if the */ |
| 64 /* corresponding hinting mode or font driver doesn't allow for very */ | 69 /* corresponding hinting mode or font driver doesn't allow for very */ |
| 65 /* quick advance computation. */ | 70 /* quick advance computation. */ |
| 66 /* */ | 71 /* */ |
| 67 /* Typically, glyphs which are either unscaled, unhinted, bitmapped, */ | 72 /* Typically, glyphs that are either unscaled, unhinted, bitmapped, */ |
| 68 /* or light-hinted can have their advance width computed very */ | 73 /* or light-hinted can have their advance width computed very */ |
| 69 /* quickly. */ | 74 /* quickly. */ |
| 70 /* */ | 75 /* */ |
| 71 /* Normal and bytecode hinted modes, which require loading, scaling, */ | 76 /* Normal and bytecode hinted modes that require loading, scaling, */ |
| 72 /* and hinting of the glyph outline, are extremely slow by */ | 77 /* and hinting of the glyph outline, are extremely slow by */ |
| 73 /* comparison. */ | 78 /* comparison. */ |
| 74 /* */ | 79 /* */ |
| 75 #define FT_ADVANCE_FLAG_FAST_ONLY 0x20000000UL | 80 #define FT_ADVANCE_FLAG_FAST_ONLY 0x20000000UL |
| 76 | 81 |
| 77 | 82 |
| 78 /*************************************************************************/ | 83 /*************************************************************************/ |
| 79 /* */ | 84 /* */ |
| 80 /* <Function> */ | 85 /* <Function> */ |
| 81 /* FT_Get_Advance */ | 86 /* FT_Get_Advance */ |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 /* transformed by the affine transformation specified by */ | 169 /* transformed by the affine transformation specified by */ |
| 165 /* @FT_Set_Transform. */ | 170 /* @FT_Set_Transform. */ |
| 166 /* */ | 171 /* */ |
| 167 FT_EXPORT( FT_Error ) | 172 FT_EXPORT( FT_Error ) |
| 168 FT_Get_Advances( FT_Face face, | 173 FT_Get_Advances( FT_Face face, |
| 169 FT_UInt start, | 174 FT_UInt start, |
| 170 FT_UInt count, | 175 FT_UInt count, |
| 171 FT_Int32 load_flags, | 176 FT_Int32 load_flags, |
| 172 FT_Fixed *padvances ); | 177 FT_Fixed *padvances ); |
| 173 | 178 |
| 174 /* */ | 179 /* */ |
| 175 | 180 |
| 176 | 181 |
| 177 FT_END_HEADER | 182 FT_END_HEADER |
| 178 | 183 |
| 179 #endif /* __FTADVANC_H__ */ | 184 #endif /* __FTADVANC_H__ */ |
| 180 | 185 |
| 181 | 186 |
| 182 /* END */ | 187 /* END */ |
| OLD | NEW |