| OLD | NEW |
| 1 /***************************************************************************/ | 1 /***************************************************************************/ |
| 2 /* */ | 2 /* */ |
| 3 /* ttgxvar.c */ | 3 /* ttgxvar.c */ |
| 4 /* */ | 4 /* */ |
| 5 /* TrueType GX Font Variation loader */ | 5 /* TrueType GX Font Variation loader */ |
| 6 /* */ | 6 /* */ |
| 7 /* Copyright 2004-2013 by */ | 7 /* Copyright 2004-2014 by */ |
| 8 /* David Turner, Robert Wilhelm, Werner Lemberg, and George Williams. */ | 8 /* David Turner, Robert Wilhelm, Werner Lemberg, and George Williams. */ |
| 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 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 36 /* */ | 36 /* */ |
| 37 /* */ | 37 /* */ |
| 38 /* Apple's `kern' table has some references to tuple indices, but as */ | 38 /* Apple's `kern' table has some references to tuple indices, but as */ |
| 39 /* there is no indication where these indices are defined, nor how to */ | 39 /* there is no indication where these indices are defined, nor how to */ |
| 40 /* interpolate the kerning values (different tuples have different */ | 40 /* interpolate the kerning values (different tuples have different */ |
| 41 /* classes) this issue is ignored. */ | 41 /* classes) this issue is ignored. */ |
| 42 /* */ | 42 /* */ |
| 43 /*************************************************************************/ | 43 /*************************************************************************/ |
| 44 | 44 |
| 45 | 45 |
| 46 #include "../../include/ft2build.h" | 46 #include <ft2build.h> |
| 47 #include "../../include/freetype/internal/ftdebug.h" | 47 #include FT_INTERNAL_DEBUG_H |
| 48 #include "../../include/freetype/config/ftconfig.h" | 48 #include FT_CONFIG_CONFIG_H |
| 49 #include "../../include/freetype/internal/ftstream.h" | 49 #include FT_INTERNAL_STREAM_H |
| 50 #include "../../include/freetype/internal/sfnt.h" | 50 #include FT_INTERNAL_SFNT_H |
| 51 #include "../../include/freetype/tttags.h" | 51 #include FT_TRUETYPE_TAGS_H |
| 52 #include "../../include/freetype/ftmm.h" | 52 #include FT_MULTIPLE_MASTERS_H |
| 53 | 53 |
| 54 #include "ttpload.h" | 54 #include "ttpload.h" |
| 55 #include "ttgxvar.h" | 55 #include "ttgxvar.h" |
| 56 | 56 |
| 57 #include "tterrors.h" | 57 #include "tterrors.h" |
| 58 | 58 |
| 59 | 59 |
| 60 #ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT | 60 #ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT |
| 61 | 61 |
| 62 | 62 |
| (...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 931 if ( face->cvt != NULL ) | 931 if ( face->cvt != NULL ) |
| 932 { | 932 { |
| 933 switch ( manageCvt ) | 933 switch ( manageCvt ) |
| 934 { | 934 { |
| 935 case mcvt_load: | 935 case mcvt_load: |
| 936 /* The cvt table has been loaded already; every time we change the */ | 936 /* The cvt table has been loaded already; every time we change the */ |
| 937 /* blend we may need to reload and remodify the cvt table. */ | 937 /* blend we may need to reload and remodify the cvt table. */ |
| 938 FT_FREE( face->cvt ); | 938 FT_FREE( face->cvt ); |
| 939 face->cvt = NULL; | 939 face->cvt = NULL; |
| 940 | 940 |
| 941 tt_face_load_cvt( face, face->root.stream ); | 941 error = tt_face_load_cvt( face, face->root.stream ); |
| 942 break; | 942 break; |
| 943 | 943 |
| 944 case mcvt_modify: | 944 case mcvt_modify: |
| 945 /* The original cvt table is in memory. All we need to do is */ | 945 /* The original cvt table is in memory. All we need to do is */ |
| 946 /* apply the `cvar' table (if any). */ | 946 /* apply the `cvar' table (if any). */ |
| 947 tt_face_vary_cvt( face, face->root.stream ); | 947 error = tt_face_vary_cvt( face, face->root.stream ); |
| 948 break; | 948 break; |
| 949 | 949 |
| 950 case mcvt_retain: | 950 case mcvt_retain: |
| 951 /* The cvt table is correct for this set of coordinates. */ | 951 /* The cvt table is correct for this set of coordinates. */ |
| 952 break; | 952 break; |
| 953 } | 953 } |
| 954 } | 954 } |
| 955 | 955 |
| 956 Exit: | 956 Exit: |
| 957 return error; | 957 return error; |
| (...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1523 FT_FREE( blend->tuplecoords ); | 1523 FT_FREE( blend->tuplecoords ); |
| 1524 FT_FREE( blend->glyphoffsets ); | 1524 FT_FREE( blend->glyphoffsets ); |
| 1525 FT_FREE( blend ); | 1525 FT_FREE( blend ); |
| 1526 } | 1526 } |
| 1527 } | 1527 } |
| 1528 | 1528 |
| 1529 #endif /* TT_CONFIG_OPTION_GX_VAR_SUPPORT */ | 1529 #endif /* TT_CONFIG_OPTION_GX_VAR_SUPPORT */ |
| 1530 | 1530 |
| 1531 | 1531 |
| 1532 /* END */ | 1532 /* END */ |
| OLD | NEW |