| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 unsigned int num_lookups; | 200 unsigned int num_lookups; |
| 201 bool free_lookups; | 201 bool free_lookups; |
| 202 | 202 |
| 203 hb_mask_t mask_array[ARABIC_FALLBACK_MAX_LOOKUPS]; | 203 hb_mask_t mask_array[ARABIC_FALLBACK_MAX_LOOKUPS]; |
| 204 OT::SubstLookup *lookup_array[ARABIC_FALLBACK_MAX_LOOKUPS]; | 204 OT::SubstLookup *lookup_array[ARABIC_FALLBACK_MAX_LOOKUPS]; |
| 205 hb_ot_layout_lookup_accelerator_t accel_array[ARABIC_FALLBACK_MAX_LOOKUPS]; | 205 hb_ot_layout_lookup_accelerator_t accel_array[ARABIC_FALLBACK_MAX_LOOKUPS]; |
| 206 }; | 206 }; |
| 207 | 207 |
| 208 static const arabic_fallback_plan_t arabic_fallback_plan_nil = {}; | 208 static const arabic_fallback_plan_t arabic_fallback_plan_nil = {}; |
| 209 | 209 |
| 210 #if (defined(_WIN32) || defined(__CYGWIN__)) && !defined(HB_WITH_WIN1256) | 210 #if (defined(_WIN32) || defined(__CYGWIN__)) && !defined(HB_NO_WIN1256) |
| 211 #define HB_WITH_WIN1256 | 211 #define HB_WITH_WIN1256 |
| 212 #endif | 212 #endif |
| 213 | 213 |
| 214 #ifdef HB_WITH_WIN1256 | 214 #ifdef HB_WITH_WIN1256 |
| 215 #include "hb-ot-shape-complex-arabic-win1256.hh" | 215 #include "hb-ot-shape-complex-arabic-win1256.hh" |
| 216 #endif | 216 #endif |
| 217 | 217 |
| 218 struct ManifestLookup { | 218 struct ManifestLookup { |
| 219 OT::Tag tag; | 219 OT::Tag tag; |
| 220 OT::OffsetTo<OT::SubstLookup> lookupOffset; | 220 OT::OffsetTo<OT::SubstLookup> lookupOffset; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 if (fallback_plan->lookup_array[i]) { | 345 if (fallback_plan->lookup_array[i]) { |
| 346 c.set_lookup_mask (fallback_plan->mask_array[i]); | 346 c.set_lookup_mask (fallback_plan->mask_array[i]); |
| 347 hb_ot_layout_substitute_lookup (&c, | 347 hb_ot_layout_substitute_lookup (&c, |
| 348 *fallback_plan->lookup_array[i], | 348 *fallback_plan->lookup_array[i], |
| 349 fallback_plan->accel_array[i]); | 349 fallback_plan->accel_array[i]); |
| 350 } | 350 } |
| 351 } | 351 } |
| 352 | 352 |
| 353 | 353 |
| 354 #endif /* HB_OT_SHAPE_COMPLEX_ARABIC_FALLBACK_HH */ | 354 #endif /* HB_OT_SHAPE_COMPLEX_ARABIC_FALLBACK_HH */ |
| OLD | NEW |