OLD | NEW |
1 /* | 1 /* |
2 * Copyright © 2011,2012 Google, Inc. | 2 * Copyright © 2011,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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 | 282 |
283 return a < b ? -1 : a == b ? 0 : +1; | 283 return a < b ? -1 : a == b ? 0 : +1; |
284 } | 284 } |
285 | 285 |
286 | 286 |
287 void | 287 void |
288 _hb_ot_shape_normalize (const hb_ot_shape_plan_t *plan, | 288 _hb_ot_shape_normalize (const hb_ot_shape_plan_t *plan, |
289 hb_buffer_t *buffer, | 289 hb_buffer_t *buffer, |
290 hb_font_t *font) | 290 hb_font_t *font) |
291 { | 291 { |
| 292 _hb_buffer_assert_unicode_vars (buffer); |
| 293 |
292 hb_ot_shape_normalization_mode_t mode = plan->shaper->normalization_preference
; | 294 hb_ot_shape_normalization_mode_t mode = plan->shaper->normalization_preference
; |
293 const hb_ot_shape_normalize_context_t c = { | 295 const hb_ot_shape_normalize_context_t c = { |
294 plan, | 296 plan, |
295 buffer, | 297 buffer, |
296 font, | 298 font, |
297 buffer->unicode, | 299 buffer->unicode, |
298 plan->shaper->decompose ? plan->shaper->decompose : decompose_unicode, | 300 plan->shaper->decompose ? plan->shaper->decompose : decompose_unicode, |
299 plan->shaper->compose ? plan->shaper->compose : compose_unicode | 301 plan->shaper->compose ? plan->shaper->compose : compose_unicode |
300 }; | 302 }; |
301 | 303 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 | 406 |
405 /* Blocked, or doesn't compose. */ | 407 /* Blocked, or doesn't compose. */ |
406 buffer->next_glyph (); | 408 buffer->next_glyph (); |
407 | 409 |
408 if (_hb_glyph_info_get_modified_combining_class (&buffer->prev()) == 0) | 410 if (_hb_glyph_info_get_modified_combining_class (&buffer->prev()) == 0) |
409 starter = buffer->out_len - 1; | 411 starter = buffer->out_len - 1; |
410 } | 412 } |
411 buffer->swap_buffers (); | 413 buffer->swap_buffers (); |
412 | 414 |
413 } | 415 } |
OLD | NEW |