OLD | NEW |
1 /* | 1 /* |
2 * Copyright © 2010,2011,2012 Google, Inc. | 2 * Copyright © 2010,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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 103 |
104 /* preprocess_text() | 104 /* preprocess_text() |
105 * Called during shape(). | 105 * Called during shape(). |
106 * Shapers can use to modify text before shaping starts. | 106 * Shapers can use to modify text before shaping starts. |
107 * May be NULL. | 107 * May be NULL. |
108 */ | 108 */ |
109 void (*preprocess_text) (const hb_ot_shape_plan_t *plan, | 109 void (*preprocess_text) (const hb_ot_shape_plan_t *plan, |
110 hb_buffer_t *buffer, | 110 hb_buffer_t *buffer, |
111 hb_font_t *font); | 111 hb_font_t *font); |
112 | 112 |
| 113 /* postprocess_glyphs() |
| 114 * Called during shape(). |
| 115 * Shapers can use to modify glyphs after shaping ends. |
| 116 * May be NULL. |
| 117 */ |
| 118 void (*postprocess_glyphs) (const hb_ot_shape_plan_t *plan, |
| 119 hb_buffer_t *buffer, |
| 120 hb_font_t *font); |
| 121 |
113 | 122 |
114 hb_ot_shape_normalization_mode_t normalization_preference; | 123 hb_ot_shape_normalization_mode_t normalization_preference; |
115 | 124 |
116 /* decompose() | 125 /* decompose() |
117 * Called during shape()'s normalization. | 126 * Called during shape()'s normalization. |
118 * May be NULL. | 127 * May be NULL. |
119 */ | 128 */ |
120 bool (*decompose) (const hb_ot_shape_normalize_context_t *c, | 129 bool (*decompose) (const hb_ot_shape_normalize_context_t *c, |
121 hb_codepoint_t ab, | 130 hb_codepoint_t ab, |
122 hb_codepoint_t *a, | 131 hb_codepoint_t *a, |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 * GSUB/GPOS needed, so there may be no scripts found! */ | 355 * GSUB/GPOS needed, so there may be no scripts found! */ |
347 if (planner->map.chosen_script[0] == HB_TAG ('D','F','L','T')) | 356 if (planner->map.chosen_script[0] == HB_TAG ('D','F','L','T')) |
348 return &_hb_ot_complex_shaper_default; | 357 return &_hb_ot_complex_shaper_default; |
349 else | 358 else |
350 return &_hb_ot_complex_shaper_use; | 359 return &_hb_ot_complex_shaper_use; |
351 } | 360 } |
352 } | 361 } |
353 | 362 |
354 | 363 |
355 #endif /* HB_OT_SHAPE_COMPLEX_PRIVATE_HH */ | 364 #endif /* HB_OT_SHAPE_COMPLEX_PRIVATE_HH */ |
OLD | NEW |