Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Side by Side Diff: core/src/fxge/fx_freetype/fxft2.5.01/src/type1/t1gload.c

Issue 399233002: Fix pdfium building issue on VS2010 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 */
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698