summaryrefslogtreecommitdiff
path: root/src/hb-ot-shape-complex-indic-private.hh
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2012-07-19 13:25:08 -0400
committerBehdad Esfahbod <behdad@behdad.org>2012-07-19 13:25:08 -0400
commit8c973ebf0f59abb5ee920edd5d64e23d8e47ad75 (patch)
tree913ce1bceb51057dcde44c78df7a6047ad381b69 /src/hb-ot-shape-complex-indic-private.hh
parent8bb32458f95f13f66688e0811cc91f1bfffb867d (diff)
[Indic] Implement per-script matra positioning
Following what the spec says. Brings down Telugu failures from 40% to 3.75%, and Kannada failures from 44% to 10%. Does NOT affect other scripts' test results.
Diffstat (limited to 'src/hb-ot-shape-complex-indic-private.hh')
-rw-r--r--src/hb-ot-shape-complex-indic-private.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hb-ot-shape-complex-indic-private.hh b/src/hb-ot-shape-complex-indic-private.hh
index 661c7e20..e64213b8 100644
--- a/src/hb-ot-shape-complex-indic-private.hh
+++ b/src/hb-ot-shape-complex-indic-private.hh
@@ -39,7 +39,7 @@
-#define IN_HALF_BLOCK(u, Base) ((u) & ~0x7F == (Base))
+#define IN_HALF_BLOCK(u, Base) (((u) & ~0x7F) == (Base))
#define IS_DEVA(u) (IN_HALF_BLOCK (u, 0x900))
#define IS_BENG(u) (IN_HALF_BLOCK (u, 0x980))