OLD | NEW |
1 /***************************************************************************/ | 1 /***************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* t1load.c */ | 3 /* t1load.c */ |
4 /* */ | 4 /* */ |
5 /* Type 1 font loader (body). */ | 5 /* Type 1 font loader (body). */ |
6 /* */ | 6 /* */ |
7 /* Copyright 1996-2013 by */ | 7 /* Copyright 1996-2013 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 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1093 /* and `/CharStrings' dictionaries. */ | 1093 /* and `/CharStrings' dictionaries. */ |
1094 | 1094 |
1095 static void | 1095 static void |
1096 t1_parse_font_matrix( T1_Face face, | 1096 t1_parse_font_matrix( T1_Face face, |
1097 T1_Loader loader ) | 1097 T1_Loader loader ) |
1098 { | 1098 { |
1099 T1_Parser parser = &loader->parser; | 1099 T1_Parser parser = &loader->parser; |
1100 FT_Matrix* matrix = &face->type1.font_matrix; | 1100 FT_Matrix* matrix = &face->type1.font_matrix; |
1101 FT_Vector* offset = &face->type1.font_offset; | 1101 FT_Vector* offset = &face->type1.font_offset; |
1102 FT_Face root = (FT_Face)&face->root; | 1102 FT_Face root = (FT_Face)&face->root; |
1103 FT_Fixed temp[6]; | 1103 FT_Fixed temp[6] = {0, 0, 0, 0, 0, 0}; |
1104 FT_Fixed temp_scale; | 1104 FT_Fixed temp_scale = 0; |
1105 FT_Int result; | 1105 FT_Int result; |
1106 | 1106 |
1107 | 1107 |
1108 result = T1_ToFixedArray( parser, 6, temp, 3 ); | 1108 result = T1_ToFixedArray( parser, 6, temp, 3 ); |
1109 | 1109 |
1110 if ( result < 0 ) | 1110 if ( result < 0 ) |
1111 { | 1111 { |
1112 parser->root.error = FT_THROW( Invalid_File_Format ); | 1112 parser->root.error = FT_THROW( Invalid_File_Format ); |
1113 return; | 1113 return; |
1114 } | 1114 } |
(...skipping 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2263 type1->encoding.num_chars = loader.num_chars; | 2263 type1->encoding.num_chars = loader.num_chars; |
2264 } | 2264 } |
2265 | 2265 |
2266 Exit: | 2266 Exit: |
2267 t1_done_loader( &loader ); | 2267 t1_done_loader( &loader ); |
2268 return error; | 2268 return error; |
2269 } | 2269 } |
2270 | 2270 |
2271 | 2271 |
2272 /* END */ | 2272 /* END */ |
OLD | NEW |