| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright © 2010,2012 Google, Inc. | 2 * Copyright © 2010,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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 0xFB43u, /* FINAL PE */ | 61 0xFB43u, /* FINAL PE */ |
| 62 0xFB44u, /* PE */ | 62 0xFB44u, /* PE */ |
| 63 0x0000u, /* FINAL TSADI */ | 63 0x0000u, /* FINAL TSADI */ |
| 64 0xFB46u, /* TSADI */ | 64 0xFB46u, /* TSADI */ |
| 65 0xFB47u, /* QOF */ | 65 0xFB47u, /* QOF */ |
| 66 0xFB48u, /* RESH */ | 66 0xFB48u, /* RESH */ |
| 67 0xFB49u, /* SHIN */ | 67 0xFB49u, /* SHIN */ |
| 68 0xFB4Au /* TAV */ | 68 0xFB4Au /* TAV */ |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 bool found = c->unicode->compose (a, b, ab); | 71 bool found = (bool) c->unicode->compose (a, b, ab); |
| 72 | 72 |
| 73 if (!found && !c->plan->has_mark) | 73 if (!found && !c->plan->has_mark) |
| 74 { | 74 { |
| 75 /* Special-case Hebrew presentation forms that are excluded from | 75 /* Special-case Hebrew presentation forms that are excluded from |
| 76 * standard normalization, but wanted for old fonts. */ | 76 * standard normalization, but wanted for old fonts. */ |
| 77 switch (b) { | 77 switch (b) { |
| 78 case 0x05B4u: /* HIRIQ */ | 78 case 0x05B4u: /* HIRIQ */ |
| 79 if (a == 0x05D9u) { /* YOD */ | 79 if (a == 0x05D9u) { /* YOD */ |
| 80 *ab = 0xFB1Du; | 80 *ab = 0xFB1Du; |
| 81 found = true; | 81 found = true; |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 NULL, /* data_destroy */ | 164 NULL, /* data_destroy */ |
| 165 NULL, /* preprocess_text */ | 165 NULL, /* preprocess_text */ |
| 166 NULL, /* postprocess_glyphs */ | 166 NULL, /* postprocess_glyphs */ |
| 167 HB_OT_SHAPE_NORMALIZATION_MODE_DEFAULT, | 167 HB_OT_SHAPE_NORMALIZATION_MODE_DEFAULT, |
| 168 NULL, /* decompose */ | 168 NULL, /* decompose */ |
| 169 compose_hebrew, | 169 compose_hebrew, |
| 170 NULL, /* setup_masks */ | 170 NULL, /* setup_masks */ |
| 171 HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_GDEF_LATE, | 171 HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_GDEF_LATE, |
| 172 true, /* fallback_position */ | 172 true, /* fallback_position */ |
| 173 }; | 173 }; |
| OLD | NEW |