mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 23:41:03 +01:00
Don't form fractions if only one of numr/dnom exist
This commit is contained in:
1 parent
3aeee519f0
commit
76fff252a9
1 file changed
+2
-1
+2
-1
@@ -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'));
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user