提交 f724cc35 编写于 作者: J Jonathan Kew 提交者: Behdad Esfahbod

Don't apply Arabic shaping to vertical text.

上级 97942420
...@@ -179,9 +179,12 @@ hb_ot_shape_complex_categorize (const hb_ot_shape_planner_t *planner) ...@@ -179,9 +179,12 @@ hb_ot_shape_complex_categorize (const hb_ot_shape_planner_t *planner)
case HB_SCRIPT_PSALTER_PAHLAVI: case HB_SCRIPT_PSALTER_PAHLAVI:
/* For Arabic script, use the Arabic shaper even if no OT script tag was found. /* For Arabic script, use the Arabic shaper even if no OT script tag was found.
* This is because we do fallback shaping for Arabic script (and not others). */ * This is because we do fallback shaping for Arabic script (and not others).
if (planner->map.chosen_script[0] != HB_OT_TAG_DEFAULT_SCRIPT || * But note that Arabic shaping is applicable only to horizontal layout; for
planner->props.script == HB_SCRIPT_ARABIC) * vertical text, just use the generic shaper instead. */
if ((planner->map.chosen_script[0] != HB_OT_TAG_DEFAULT_SCRIPT ||
planner->props.script == HB_SCRIPT_ARABIC) &&
HB_DIRECTION_IS_HORIZONTAL(planner->props.direction))
return &_hb_ot_complex_shaper_arabic; return &_hb_ot_complex_shaper_arabic;
else else
return &_hb_ot_complex_shaper_default; return &_hb_ot_complex_shaper_default;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册