OLD | NEW |
1 /* | 1 /* |
2 * Copyright © 2012 Google, Inc. | 2 * Copyright © 2012 Google, Inc. |
3 * | 3 * |
4 * This is part of HarfBuzz, a text shaping library. | 4 * This is part of HarfBuzz, a text shaping 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 free (fallback_plan); | 237 free (fallback_plan); |
238 } | 238 } |
239 | 239 |
240 static void | 240 static void |
241 arabic_fallback_plan_shape (arabic_fallback_plan_t *fallback_plan, | 241 arabic_fallback_plan_shape (arabic_fallback_plan_t *fallback_plan, |
242 hb_font_t *font, | 242 hb_font_t *font, |
243 hb_buffer_t *buffer) | 243 hb_buffer_t *buffer) |
244 { | 244 { |
245 for (unsigned int i = 0; i < ARABIC_NUM_FALLBACK_FEATURES; i++) | 245 for (unsigned int i = 0; i < ARABIC_NUM_FALLBACK_FEATURES; i++) |
246 if (fallback_plan->lookup_array[i]) { | 246 if (fallback_plan->lookup_array[i]) { |
247 OT::hb_apply_context_t c (font, buffer, fallback_plan->mask_array[i]); | 247 OT::hb_apply_context_t c (0, font, buffer, fallback_plan->mask_array[i], t
rue/*auto_zwj*/); |
248 fallback_plan->lookup_array[i]->apply_string (&c, &fallback_plan->digest_a
rray[i]); | 248 fallback_plan->lookup_array[i]->apply_string (&c, &fallback_plan->digest_a
rray[i]); |
249 } | 249 } |
250 } | 250 } |
251 | 251 |
252 | 252 |
253 #endif /* HB_OT_SHAPE_COMPLEX_ARABIC_FALLBACK_HH */ | 253 #endif /* HB_OT_SHAPE_COMPLEX_ARABIC_FALLBACK_HH */ |
OLD | NEW |