OLD | NEW |
1 /* | 1 /* |
2 * Copyright © 2007,2008,2009,2010 Red Hat, Inc. | 2 * Copyright © 2007,2008,2009,2010 Red Hat, Inc. |
3 * Copyright © 2010,2012,2013 Google, Inc. | 3 * Copyright © 2010,2012,2013 Google, Inc. |
4 * | 4 * |
5 * This is part of HarfBuzz, a text shaping library. | 5 * This is part of HarfBuzz, a text shaping 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 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1331 return TRACE_RETURN (list.sanitize (c, this)); | 1331 return TRACE_RETURN (list.sanitize (c, this)); |
1332 } | 1332 } |
1333 public: | 1333 public: |
1334 DEFINE_SIZE_STATIC (10); | 1334 DEFINE_SIZE_STATIC (10); |
1335 }; | 1335 }; |
1336 | 1336 |
1337 | 1337 |
1338 void | 1338 void |
1339 GSUB::substitute_start (hb_font_t *font, hb_buffer_t *buffer) | 1339 GSUB::substitute_start (hb_font_t *font, hb_buffer_t *buffer) |
1340 { | 1340 { |
1341 _hb_buffer_allocate_gsubgpos_vars (buffer); | 1341 _hb_buffer_assert_gsubgpos_vars (buffer); |
1342 | 1342 |
1343 const GDEF &gdef = *hb_ot_layout_from_face (font->face)->gdef; | 1343 const GDEF &gdef = *hb_ot_layout_from_face (font->face)->gdef; |
1344 unsigned int count = buffer->len; | 1344 unsigned int count = buffer->len; |
1345 for (unsigned int i = 0; i < count; i++) | 1345 for (unsigned int i = 0; i < count; i++) |
1346 { | 1346 { |
1347 _hb_glyph_info_set_glyph_props (&buffer->info[i], gdef.get_glyph_props (buff
er->info[i].codepoint)); | 1347 _hb_glyph_info_set_glyph_props (&buffer->info[i], gdef.get_glyph_props (buff
er->info[i].codepoint)); |
1348 _hb_glyph_info_clear_lig_props (&buffer->info[i]); | 1348 _hb_glyph_info_clear_lig_props (&buffer->info[i]); |
1349 buffer->info[i].syllable() = 0; | 1349 buffer->info[i].syllable() = 0; |
1350 } | 1350 } |
1351 } | 1351 } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1383 bool ret = l.apply_once (c); | 1383 bool ret = l.apply_once (c); |
1384 c->lookup_props = saved_lookup_props; | 1384 c->lookup_props = saved_lookup_props; |
1385 return ret; | 1385 return ret; |
1386 } | 1386 } |
1387 | 1387 |
1388 | 1388 |
1389 } /* namespace OT */ | 1389 } /* namespace OT */ |
1390 | 1390 |
1391 | 1391 |
1392 #endif /* HB_OT_LAYOUT_GSUB_TABLE_HH */ | 1392 #endif /* HB_OT_LAYOUT_GSUB_TABLE_HH */ |
OLD | NEW |