OLD | NEW |
1 /* | 1 /* |
2 * Copyright © 1998-2004 David Turner and Werner Lemberg | 2 * Copyright © 1998-2004 David Turner and Werner Lemberg |
3 * Copyright © 2006 Behdad Esfahbod | 3 * Copyright © 2006 Behdad Esfahbod |
4 * Copyright © 2007,2008,2009 Red Hat, Inc. | 4 * Copyright © 2007,2008,2009 Red Hat, Inc. |
5 * Copyright © 2012,2013 Google, Inc. | 5 * Copyright © 2012,2013 Google, Inc. |
6 * | 6 * |
7 * This is part of HarfBuzz, a text shaping library. | 7 * This is part of HarfBuzz, a text shaping library. |
8 * | 8 * |
9 * Permission is hereby granted, without written agreement and without | 9 * Permission is hereby granted, without written agreement and without |
10 * license or royalty fees, to use, copy, modify, and distribute this | 10 * license or royalty fees, to use, copy, modify, and distribute this |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 for (unsigned int i = 0; i < layout->gpos_lookup_count; i++) | 77 for (unsigned int i = 0; i < layout->gpos_lookup_count; i++) |
78 layout->gpos_accels[i].init (layout->gpos->get_lookup (i)); | 78 layout->gpos_accels[i].init (layout->gpos->get_lookup (i)); |
79 | 79 |
80 return layout; | 80 return layout; |
81 } | 81 } |
82 | 82 |
83 void | 83 void |
84 _hb_ot_layout_destroy (hb_ot_layout_t *layout) | 84 _hb_ot_layout_destroy (hb_ot_layout_t *layout) |
85 { | 85 { |
86 for (unsigned int i = 0; i < layout->gsub_lookup_count; i++) | 86 for (unsigned int i = 0; i < layout->gsub_lookup_count; i++) |
87 layout->gsub_accels[i].fini (layout->gsub->get_lookup (i)); | 87 layout->gsub_accels[i].fini (); |
88 for (unsigned int i = 0; i < layout->gpos_lookup_count; i++) | 88 for (unsigned int i = 0; i < layout->gpos_lookup_count; i++) |
89 layout->gpos_accels[i].fini (layout->gpos->get_lookup (i)); | 89 layout->gpos_accels[i].fini (); |
90 | 90 |
91 free (layout->gsub_accels); | 91 free (layout->gsub_accels); |
92 free (layout->gpos_accels); | 92 free (layout->gpos_accels); |
93 | 93 |
94 hb_blob_destroy (layout->gdef_blob); | 94 hb_blob_destroy (layout->gdef_blob); |
95 hb_blob_destroy (layout->gsub_blob); | 95 hb_blob_destroy (layout->gsub_blob); |
96 hb_blob_destroy (layout->gpos_blob); | 96 hb_blob_destroy (layout->gpos_blob); |
97 | 97 |
98 free (layout); | 98 free (layout); |
99 } | 99 } |
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
941 apply (proxy, plan, font, buffer); | 941 apply (proxy, plan, font, buffer); |
942 } | 942 } |
943 | 943 |
944 HB_INTERNAL void | 944 HB_INTERNAL void |
945 hb_ot_layout_substitute_lookup (OT::hb_apply_context_t *c, | 945 hb_ot_layout_substitute_lookup (OT::hb_apply_context_t *c, |
946 const OT::SubstLookup &lookup, | 946 const OT::SubstLookup &lookup, |
947 const hb_ot_layout_lookup_accelerator_t &accel) | 947 const hb_ot_layout_lookup_accelerator_t &accel) |
948 { | 948 { |
949 apply_string<GSUBProxy> (c, lookup, accel); | 949 apply_string<GSUBProxy> (c, lookup, accel); |
950 } | 950 } |
OLD | NEW |