OLD | NEW |
1 /***************************************************************************/ | 1 /***************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* t1gload.c */ | 3 /* t1gload.c */ |
4 /* */ | 4 /* */ |
5 /* Type 1 Glyph Loader (body). */ | 5 /* Type 1 Glyph Loader (body). */ |
6 /* */ | 6 /* */ |
7 /* Copyright 1996-2006, 2008-2010, 2013 by */ | 7 /* Copyright 1996-2006, 2008-2010, 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 T1_GlyphSlot glyph = (T1_GlyphSlot)t1glyph; | 274 T1_GlyphSlot glyph = (T1_GlyphSlot)t1glyph; |
275 FT_Error error; | 275 FT_Error error; |
276 T1_DecoderRec decoder; | 276 T1_DecoderRec decoder; |
277 T1_Face face = (T1_Face)t1glyph->face; | 277 T1_Face face = (T1_Face)t1glyph->face; |
278 FT_Bool hinting; | 278 FT_Bool hinting; |
279 T1_Font type1 = &face->type1; | 279 T1_Font type1 = &face->type1; |
280 PSAux_Service psaux = (PSAux_Service)face->psaux; | 280 PSAux_Service psaux = (PSAux_Service)face->psaux; |
281 const T1_Decoder_Funcs decoder_funcs = psaux->t1_decoder_funcs; | 281 const T1_Decoder_Funcs decoder_funcs = psaux->t1_decoder_funcs; |
282 | 282 |
283 FT_Matrix font_matrix; | 283 FT_Matrix font_matrix; |
284 FT_Vector font_offset; | 284 FT_Vector font_offset = {0, 0}; |
285 font_offset.x = 0; | |
286 font_offset.y = 0; | |
287 FT_Data glyph_data; | 285 FT_Data glyph_data; |
288 FT_Bool must_finish_decoder = FALSE; | 286 FT_Bool must_finish_decoder = FALSE; |
289 #ifdef FT_CONFIG_OPTION_INCREMENTAL | 287 #ifdef FT_CONFIG_OPTION_INCREMENTAL |
290 FT_Bool glyph_data_loaded = 0; | 288 FT_Bool glyph_data_loaded = 0; |
291 #endif | 289 #endif |
292 | 290 |
293 | 291 |
294 #ifdef FT_CONFIG_OPTION_INCREMENTAL | 292 #ifdef FT_CONFIG_OPTION_INCREMENTAL |
295 if ( glyph_index >= (FT_UInt)face->root.num_glyphs && | 293 if ( glyph_index >= (FT_UInt)face->root.num_glyphs && |
296 !face->root.internal->incremental_interface ) | 294 !face->root.internal->incremental_interface ) |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 #endif | 508 #endif |
511 | 509 |
512 if ( must_finish_decoder ) | 510 if ( must_finish_decoder ) |
513 decoder_funcs->done( &decoder ); | 511 decoder_funcs->done( &decoder ); |
514 | 512 |
515 return error; | 513 return error; |
516 } | 514 } |
517 | 515 |
518 | 516 |
519 /* END */ | 517 /* END */ |
OLD | NEW |