OLD | NEW |
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 Loading... |
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 Loading... |
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 */ |
OLD | NEW |