提交 76fff252 编写于 作者: B Behdad Esfahbod

Don't form fractions if only one of numr/dnom exist

上级 3aeee519
...@@ -331,7 +331,8 @@ hb_ot_shape_setup_masks_fraction (hb_ot_shape_context_t *c) ...@@ -331,7 +331,8 @@ hb_ot_shape_setup_masks_fraction (hb_ot_shape_context_t *c)
numr_mask = c->plan->map.get_1_mask (HB_TAG ('n','u','m','r')); numr_mask = c->plan->map.get_1_mask (HB_TAG ('n','u','m','r'));
dnom_mask = c->plan->map.get_1_mask (HB_TAG ('d','n','o','m')); dnom_mask = c->plan->map.get_1_mask (HB_TAG ('d','n','o','m'));
if (!(frac_mask | numr_mask | dnom_mask)) /* Only proceed if frac exists, or both numr and dnom exist. */
if (!frac_mask && (!numr_mask || !dnom_mask))
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册