| 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 11 matching lines...) Expand all Loading... |
| 22 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 22 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 23 * | 23 * |
| 24 * Google Author(s): Behdad Esfahbod | 24 * Google Author(s): Behdad Esfahbod |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #ifndef HB_OT_SHAPE_NORMALIZE_PRIVATE_HH | 27 #ifndef HB_OT_SHAPE_NORMALIZE_PRIVATE_HH |
| 28 #define HB_OT_SHAPE_NORMALIZE_PRIVATE_HH | 28 #define HB_OT_SHAPE_NORMALIZE_PRIVATE_HH |
| 29 | 29 |
| 30 #include "hb-private.hh" | 30 #include "hb-private.hh" |
| 31 | 31 |
| 32 #include "hb-font.h" | |
| 33 #include "hb-buffer.h" | |
| 34 | 32 |
| 35 /* buffer var allocations, used during the normalization process */ | 33 /* buffer var allocations, used during the normalization process */ |
| 36 #define glyph_index() var1.u32 | 34 #define glyph_index() var1.u32 |
| 37 | 35 |
| 38 struct hb_ot_shape_plan_t; | 36 struct hb_ot_shape_plan_t; |
| 39 | 37 |
| 40 enum hb_ot_shape_normalization_mode_t { | 38 enum hb_ot_shape_normalization_mode_t { |
| 39 HB_OT_SHAPE_NORMALIZATION_MODE_NONE, |
| 41 HB_OT_SHAPE_NORMALIZATION_MODE_DECOMPOSED, | 40 HB_OT_SHAPE_NORMALIZATION_MODE_DECOMPOSED, |
| 42 HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS, /* never composes base-to-
base */ | 41 HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS, /* never composes base-to-
base */ |
| 43 HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS_NO_SHORT_CIRCUIT, /* always
fully decomposes and then recompose back */ | 42 HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS_NO_SHORT_CIRCUIT, /* always
fully decomposes and then recompose back */ |
| 44 | 43 |
| 45 HB_OT_SHAPE_NORMALIZATION_MODE_DEFAULT = HB_OT_SHAPE_NORMALIZATION_MODE_COMPOS
ED_DIACRITICS | 44 HB_OT_SHAPE_NORMALIZATION_MODE_DEFAULT = HB_OT_SHAPE_NORMALIZATION_MODE_COMPOS
ED_DIACRITICS |
| 46 }; | 45 }; |
| 47 | 46 |
| 48 HB_INTERNAL void _hb_ot_shape_normalize (const hb_ot_shape_plan_t *shaper, | 47 HB_INTERNAL void _hb_ot_shape_normalize (const hb_ot_shape_plan_t *shaper, |
| 49 hb_buffer_t *buffer, | 48 hb_buffer_t *buffer, |
| 50 hb_font_t *font); | 49 hb_font_t *font); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 61 hb_codepoint_t *a, | 60 hb_codepoint_t *a, |
| 62 hb_codepoint_t *b); | 61 hb_codepoint_t *b); |
| 63 bool (*compose) (const hb_ot_shape_normalize_context_t *c, | 62 bool (*compose) (const hb_ot_shape_normalize_context_t *c, |
| 64 hb_codepoint_t a, | 63 hb_codepoint_t a, |
| 65 hb_codepoint_t b, | 64 hb_codepoint_t b, |
| 66 hb_codepoint_t *ab); | 65 hb_codepoint_t *ab); |
| 67 }; | 66 }; |
| 68 | 67 |
| 69 | 68 |
| 70 #endif /* HB_OT_SHAPE_NORMALIZE_PRIVATE_HH */ | 69 #endif /* HB_OT_SHAPE_NORMALIZE_PRIVATE_HH */ |
| OLD | NEW |