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

Side by Side Diff: src/sfnt/ttkern.c

Issue 89753003: Update freetype to latest version of ASOP. (Closed) Base URL: https://chromium.googlesource.com/chromium/src/third_party/freetype.git@master
Patch Set: Created 7 years 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 | « src/sfnt/ttcmapc.h ('k') | src/sfnt/ttload.c » ('j') | 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 /* ttkern.c */ 3 /* ttkern.c */
4 /* */ 4 /* */
5 /* Load the basic TrueType kerning table. This doesn't handle */ 5 /* Load the basic TrueType kerning table. This doesn't handle */
6 /* kerning data within the GPOS table at the moment. */ 6 /* kerning data within the GPOS table at the moment. */
7 /* */ 7 /* */
8 /* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010 by */ 8 /* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010 by */
9 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
10 /* */ 10 /* */
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 /* the kern table is optional; exit silently if it is missing */ 55 /* the kern table is optional; exit silently if it is missing */
56 error = face->goto_table( face, TTAG_kern, stream, &table_size ); 56 error = face->goto_table( face, TTAG_kern, stream, &table_size );
57 if ( error ) 57 if ( error )
58 goto Exit; 58 goto Exit;
59 59
60 if ( table_size < 4 ) /* the case of a malformed table */ 60 if ( table_size < 4 ) /* the case of a malformed table */
61 { 61 {
62 FT_ERROR(( "tt_face_load_kern:" 62 FT_ERROR(( "tt_face_load_kern:"
63 " kerning table is too small - ignored\n" )); 63 " kerning table is too small - ignored\n" ));
64 error = SFNT_Err_Table_Missing; 64 error = FT_THROW( Table_Missing );
65 goto Exit; 65 goto Exit;
66 } 66 }
67 67
68 if ( FT_FRAME_EXTRACT( table_size, face->kern_table ) ) 68 if ( FT_FRAME_EXTRACT( table_size, face->kern_table ) )
69 { 69 {
70 FT_ERROR(( "tt_face_load_kern:" 70 FT_ERROR(( "tt_face_load_kern:"
71 " could not extract kerning table\n" )); 71 " could not extract kerning table\n" ));
72 goto Exit; 72 goto Exit;
73 } 73 }
74 74
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 NextTable: 297 NextTable:
298 p = next; 298 p = next;
299 } 299 }
300 300
301 return result; 301 return result;
302 } 302 }
303 303
304 #undef TT_KERN_INDEX 304 #undef TT_KERN_INDEX
305 305
306 /* END */ 306 /* END */
OLDNEW
« no previous file with comments | « src/sfnt/ttcmapc.h ('k') | src/sfnt/ttload.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698