| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998-2004 David Turner and Werner Lemberg | 2 * Copyright (C) 1998-2004 David Turner and Werner Lemberg |
| 3 * Copyright (C) 2006 Behdad Esfahbod | 3 * Copyright (C) 2006 Behdad Esfahbod |
| 4 * | 4 * |
| 5 * This is part of HarfBuzz, an OpenType Layout engine library. | 5 * This is part of HarfBuzz, an OpenType Layout engine library. |
| 6 * | 6 * |
| 7 * Permission is hereby granted, without written agreement and without | 7 * Permission is hereby granted, without written agreement and without |
| 8 * license or royalty fees, to use, copy, modify, and distribute this | 8 * license or royalty fees, to use, copy, modify, and distribute this |
| 9 * software and its documentation for any purpose, provided that the | 9 * software and its documentation for any purpose, provided that the |
| 10 * above copyright notice and the following two paragraphs appear in | 10 * above copyright notice and the following two paragraphs appear in |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 stream ) ) != HB_Err_Ok ) | 435 stream ) ) != HB_Err_Ok ) |
| 436 return error; | 436 return error; |
| 437 (void)FILE_Seek( cur_offset ); | 437 (void)FILE_Seek( cur_offset ); |
| 438 | 438 |
| 439 break; | 439 break; |
| 440 | 440 |
| 441 case 4: | 441 case 4: |
| 442 if ( ACCESS_Frame( 2L ) ) | 442 if ( ACCESS_Frame( 2L ) ) |
| 443 return error; | 443 return error; |
| 444 | 444 |
| 445 #ifdef HB_SUPPORT_MULTIPLE_MASTER |
| 445 cv->cvf.cvf4.IdCaretValue = GET_UShort(); | 446 cv->cvf.cvf4.IdCaretValue = GET_UShort(); |
| 447 #else |
| 448 (void) GET_UShort(); |
| 449 #endif |
| 446 | 450 |
| 447 FORGET_Frame(); | 451 FORGET_Frame(); |
| 448 break; | 452 break; |
| 449 | 453 |
| 450 default: | 454 default: |
| 451 return ERR(HB_Err_Invalid_SubTable_Format); | 455 return ERR(HB_Err_Invalid_SubTable_Format); |
| 452 } | 456 } |
| 453 | 457 |
| 454 return HB_Err_Ok; | 458 return HB_Err_Ok; |
| 455 } | 459 } |
| 456 | 460 |
| 457 | 461 |
| 458 static void Free_CaretValue( HB_CaretValue* cv) | 462 static void Free_CaretValue( HB_CaretValue* cv) |
| 459 { | 463 { |
| 460 if ( cv->CaretValueFormat == 3 ) | 464 if ( cv->CaretValueFormat == 3 ) |
| 461 _HB_OPEN_Free_Device( &cv->cvf.cvf3.Device ); | 465 _HB_OPEN_Free_Device( cv->cvf.cvf3.Device ); |
| 462 } | 466 } |
| 463 | 467 |
| 464 | 468 |
| 465 /* LigGlyph */ | 469 /* LigGlyph */ |
| 466 | 470 |
| 467 static HB_Error Load_LigGlyph( HB_LigGlyph* lg, | 471 static HB_Error Load_LigGlyph( HB_LigGlyph* lg, |
| 468 HB_Stream stream ) | 472 HB_Stream stream ) |
| 469 { | 473 { |
| 470 HB_Error error; | 474 HB_Error error; |
| 471 | 475 |
| (...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1150 break; | 1154 break; |
| 1151 } | 1155 } |
| 1152 } | 1156 } |
| 1153 } | 1157 } |
| 1154 | 1158 |
| 1155 Done: | 1159 Done: |
| 1156 return error; | 1160 return error; |
| 1157 } | 1161 } |
| 1158 | 1162 |
| 1159 /* END */ | 1163 /* END */ |
| OLD | NEW |