Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: third_party/harfbuzz-ng/src/hb-ot-shape-complex-private.hh

Issue 396393005: Roll HarfBuzz to 0.9.32 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for include order presubmit issue Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 case HB_SCRIPT_MONGOLIAN: 166 case HB_SCRIPT_MONGOLIAN:
167 case HB_SCRIPT_SYRIAC: 167 case HB_SCRIPT_SYRIAC:
168 168
169 /* Unicode-5.0 additions */ 169 /* Unicode-5.0 additions */
170 case HB_SCRIPT_NKO: 170 case HB_SCRIPT_NKO:
171 case HB_SCRIPT_PHAGS_PA: 171 case HB_SCRIPT_PHAGS_PA:
172 172
173 /* Unicode-6.0 additions */ 173 /* Unicode-6.0 additions */
174 case HB_SCRIPT_MANDAIC: 174 case HB_SCRIPT_MANDAIC:
175 175
176 /* Unicode-7.0 additions */
177 case HB_SCRIPT_MANICHAEAN:
178 case HB_SCRIPT_PSALTER_PAHLAVI:
179
176 /* For Arabic script, use the Arabic shaper even if no OT script tag was f ound. 180 /* For Arabic script, use the Arabic shaper even if no OT script tag was f ound.
177 * This is because we do fallback shaping for Arabic script (and not other s). */ 181 * This is because we do fallback shaping for Arabic script (and not other s). */
178 if (planner->map.chosen_script[0] != HB_OT_TAG_DEFAULT_SCRIPT || 182 if (planner->map.chosen_script[0] != HB_OT_TAG_DEFAULT_SCRIPT ||
179 planner->props.script == HB_SCRIPT_ARABIC) 183 planner->props.script == HB_SCRIPT_ARABIC)
180 return &_hb_ot_complex_shaper_arabic; 184 return &_hb_ot_complex_shaper_arabic;
181 else 185 else
182 return &_hb_ot_complex_shaper_default; 186 return &_hb_ot_complex_shaper_default;
183 187
184 188
185 /* Unicode-1.1 additions */ 189 /* Unicode-1.1 additions */
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 * GSUB/GPOS needed, so there may be no scripts found! */ 352 * GSUB/GPOS needed, so there may be no scripts found! */
349 if (planner->map.chosen_script[0] == HB_TAG ('D','F','L','T')) 353 if (planner->map.chosen_script[0] == HB_TAG ('D','F','L','T'))
350 return &_hb_ot_complex_shaper_default; 354 return &_hb_ot_complex_shaper_default;
351 else 355 else
352 return &_hb_ot_complex_shaper_sea; 356 return &_hb_ot_complex_shaper_sea;
353 } 357 }
354 } 358 }
355 359
356 360
357 #endif /* HB_OT_SHAPE_COMPLEX_PRIVATE_HH */ 361 #endif /* HB_OT_SHAPE_COMPLEX_PRIVATE_HH */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698