OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000, 2007 Red Hat, Inc. | 2 * Copyright (C) 2000, 2007 Red Hat, Inc. |
3 * | 3 * |
4 * This is part of HarfBuzz, an OpenType Layout engine library. | 4 * This is part of HarfBuzz, an OpenType Layout engine library. |
5 * | 5 * |
6 * Permission is hereby granted, without written agreement and without | 6 * Permission is hereby granted, without written agreement and without |
7 * license or royalty fees, to use, copy, modify, and distribute this | 7 * license or royalty fees, to use, copy, modify, and distribute this |
8 * software and its documentation for any purpose, provided that the | 8 * software and its documentation for any purpose, provided that the |
9 * above copyright notice and the following two paragraphs appear in | 9 * above copyright notice and the following two paragraphs appear in |
10 * all copies of this software. | 10 * all copies of this software. |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 { | 512 { |
513 if (value_format & HB_GPOS_FORMAT_HAVE_X_PLACEMENT) | 513 if (value_format & HB_GPOS_FORMAT_HAVE_X_PLACEMENT) |
514 DUMP_FINT (ValueRecord, XPlacement); | 514 DUMP_FINT (ValueRecord, XPlacement); |
515 if (value_format & HB_GPOS_FORMAT_HAVE_Y_PLACEMENT) | 515 if (value_format & HB_GPOS_FORMAT_HAVE_Y_PLACEMENT) |
516 DUMP_FINT (ValueRecord, YPlacement); | 516 DUMP_FINT (ValueRecord, YPlacement); |
517 if (value_format & HB_GPOS_FORMAT_HAVE_X_ADVANCE) | 517 if (value_format & HB_GPOS_FORMAT_HAVE_X_ADVANCE) |
518 DUMP_FINT (ValueRecord, XAdvance); | 518 DUMP_FINT (ValueRecord, XAdvance); |
519 if (value_format & HB_GPOS_FORMAT_HAVE_Y_ADVANCE) | 519 if (value_format & HB_GPOS_FORMAT_HAVE_Y_ADVANCE) |
520 DUMP_FINT (ValueRecord, XAdvance); | 520 DUMP_FINT (ValueRecord, XAdvance); |
521 if (value_format & HB_GPOS_FORMAT_HAVE_X_PLACEMENT_DEVICE) | 521 if (value_format & HB_GPOS_FORMAT_HAVE_X_PLACEMENT_DEVICE) |
522 RECURSE (Device, Device, &ValueRecord->XPlacementDevice); | 522 RECURSE (Device, Device, &*ValueRecord->DeviceTables[VR_X_PLACEMENT_DEVICE])
; |
523 if (value_format & HB_GPOS_FORMAT_HAVE_Y_PLACEMENT_DEVICE) | 523 if (value_format & HB_GPOS_FORMAT_HAVE_Y_PLACEMENT_DEVICE) |
524 RECURSE (Device, Device, &ValueRecord->YPlacementDevice); | 524 RECURSE (Device, Device, &*ValueRecord->DeviceTables[VR_Y_PLACEMENT_DEVICE])
; |
525 if (value_format & HB_GPOS_FORMAT_HAVE_X_ADVANCE_DEVICE) | 525 if (value_format & HB_GPOS_FORMAT_HAVE_X_ADVANCE_DEVICE) |
526 RECURSE (Device, Device, &ValueRecord->XAdvanceDevice); | 526 RECURSE (Device, Device, &*ValueRecord->DeviceTables[VR_X_ADVANCE_DEVICE]); |
527 if (value_format & HB_GPOS_FORMAT_HAVE_Y_ADVANCE_DEVICE) | 527 if (value_format & HB_GPOS_FORMAT_HAVE_Y_ADVANCE_DEVICE) |
528 RECURSE (Device, Device, &ValueRecord->YAdvanceDevice); | 528 RECURSE (Device, Device, &*ValueRecord->DeviceTables[VR_Y_ADVANCE_DEVICE]); |
| 529 #ifdef HB_SUPPORT_MULTIPLE_MASTER |
529 if (value_format & HB_GPOS_FORMAT_HAVE_X_ID_PLACEMENT) | 530 if (value_format & HB_GPOS_FORMAT_HAVE_X_ID_PLACEMENT) |
530 DUMP_FUINT (ValueRecord, XIdPlacement); | 531 DUMP_FUINT (ValueRecord, XIdPlacement); |
531 if (value_format & HB_GPOS_FORMAT_HAVE_Y_ID_PLACEMENT) | 532 if (value_format & HB_GPOS_FORMAT_HAVE_Y_ID_PLACEMENT) |
532 DUMP_FUINT (ValueRecord, YIdPlacement); | 533 DUMP_FUINT (ValueRecord, YIdPlacement); |
533 if (value_format & HB_GPOS_FORMAT_HAVE_X_ID_ADVANCE) | 534 if (value_format & HB_GPOS_FORMAT_HAVE_X_ID_ADVANCE) |
534 DUMP_FUINT (ValueRecord, XIdAdvance); | 535 DUMP_FUINT (ValueRecord, XIdAdvance); |
535 if (value_format & HB_GPOS_FORMAT_HAVE_Y_ID_ADVANCE) | 536 if (value_format & HB_GPOS_FORMAT_HAVE_Y_ID_ADVANCE) |
536 DUMP_FUINT (ValueRecord, XIdAdvance); | 537 DUMP_FUINT (ValueRecord, XIdAdvance); |
| 538 #endif |
537 } | 539 } |
538 | 540 |
539 static void | 541 static void |
540 Dump_GPOS_Lookup_Single (HB_SubTable *subtable, FILE *stream, int indent, HB_Typ
e hb_type) | 542 Dump_GPOS_Lookup_Single (HB_SubTable *subtable, FILE *stream, int indent, HB_Typ
e hb_type) |
541 { | 543 { |
542 HB_SinglePos *SinglePos = &subtable->st.gpos.single; | 544 HB_SinglePos *SinglePos = &subtable->st.gpos.single; |
543 | 545 |
544 DUMP_FUINT (SinglePos, PosFormat); | 546 DUMP_FUINT (SinglePos, PosFormat); |
545 RECURSE (Coverage, Coverage, &SinglePos->Coverage); | 547 RECURSE (Coverage, Coverage, &SinglePos->Coverage); |
546 | 548 |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 { | 758 { |
757 int indent = 1; | 759 int indent = 1; |
758 HB_Type hb_type = HB_Type_GPOS; | 760 HB_Type hb_type = HB_Type_GPOS; |
759 | 761 |
760 do_indent (stream, indent); | 762 do_indent (stream, indent); |
761 fprintf(stream, "<!-- GPOS -->\n"); | 763 fprintf(stream, "<!-- GPOS -->\n"); |
762 RECURSE (ScriptList, ScriptList, &gpos->ScriptList); | 764 RECURSE (ScriptList, ScriptList, &gpos->ScriptList); |
763 RECURSE (FeatureList, FeatureList, &gpos->FeatureList); | 765 RECURSE (FeatureList, FeatureList, &gpos->FeatureList); |
764 RECURSE (LookupList, LookupList, &gpos->LookupList); | 766 RECURSE (LookupList, LookupList, &gpos->LookupList); |
765 } | 767 } |
OLD | NEW |