[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Sun Dec 22 14:56:25 PST 2013


 src/hb-ot-shape.cc |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 76fff252a96b4357b5e71694d5201daef822aa60
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Sun Dec 22 17:55:59 2013 -0500

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

diff --git a/src/hb-ot-shape.cc b/src/hb-ot-shape.cc
index 1ef216c..f9adfd2 100644
--- a/src/hb-ot-shape.cc
+++ b/src/hb-ot-shape.cc
@@ -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;
       }
 


More information about the HarfBuzz mailing list