OLD | NEW |
1 /***************************************************************************/ | 1 /***************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* afglobal.c */ | 3 /* afglobal.c */ |
4 /* */ | 4 /* */ |
5 /* Auto-fitter routines to compute global hinting values (body). */ | 5 /* Auto-fitter routines to compute global hinting values (body). */ |
6 /* */ | 6 /* */ |
7 /* Copyright 2003-2011 by */ | 7 /* Copyright 2003-2011 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, */ |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 /* populate this list when you add new scripts */ | 37 /* populate this list when you add new scripts */ |
38 static AF_ScriptClass const af_script_classes[] = | 38 static AF_ScriptClass const af_script_classes[] = |
39 { | 39 { |
40 &af_dummy_script_class, | 40 &af_dummy_script_class, |
41 #ifdef FT_OPTION_AUTOFIT2 | 41 #ifdef FT_OPTION_AUTOFIT2 |
42 &af_latin2_script_class, | 42 &af_latin2_script_class, |
43 #endif | 43 #endif |
44 &af_latin_script_class, | 44 &af_latin_script_class, |
45 &af_cjk_script_class, | 45 &af_cjk_script_class, |
46 &af_indic_script_class, | 46 &af_indic_script_class, |
47 NULL /* do not remove */ | 47 NULL /* do not remove */ |
48 }; | 48 }; |
49 | 49 |
50 #endif /* !FT_CONFIG_OPTION_PIC */ | 50 #endif /* !FT_CONFIG_OPTION_PIC */ |
51 | 51 |
52 /* index of default script in `af_script_classes' */ | 52 /* index of default script in `af_script_classes' */ |
53 #define AF_SCRIPT_LIST_DEFAULT 2 | 53 #define AF_SCRIPT_LIST_DEFAULT 2 |
54 /* a bit mask indicating an uncovered glyph */ | 54 /* a bit mask indicating an uncovered glyph */ |
55 #define AF_SCRIPT_LIST_NONE 0x7F | 55 #define AF_SCRIPT_LIST_NONE 0x7F |
56 /* if this flag is set, we have an ASCII digit */ | 56 /* if this flag is set, we have an ASCII digit */ |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 FT_UInt gindex ) | 310 FT_UInt gindex ) |
311 { | 311 { |
312 if ( gindex < (FT_ULong)globals->glyph_count ) | 312 if ( gindex < (FT_ULong)globals->glyph_count ) |
313 return (FT_Bool)( globals->glyph_scripts[gindex] & AF_DIGIT ); | 313 return (FT_Bool)( globals->glyph_scripts[gindex] & AF_DIGIT ); |
314 | 314 |
315 return (FT_Bool)0; | 315 return (FT_Bool)0; |
316 } | 316 } |
317 | 317 |
318 | 318 |
319 /* END */ | 319 /* END */ |
OLD | NEW |