[HarfBuzz] harfbuzz-ng: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Tue Jul 24 11:26:31 PDT 2012


 src/hb-ot-shape-complex-indic.cc                                            |    2 +-
 test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/misc/misc.txt |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 6411e74caf23af7b0545f1fe54d19a1c8da895e8
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Tue Jul 24 13:48:49 2012 -0400

    [Indic] Reposition Gurmukhi top matras to after post
    
    The font is forming a post-base consonant in some samples, and Uniscribe
    positions top matra on the post-base.  Do the same.
    
    Gurmukhi failures down from 59 to 41 (0.0674242%).

diff --git a/src/hb-ot-shape-complex-indic.cc b/src/hb-ot-shape-complex-indic.cc
index d0c3c09..ea5648a 100644
--- a/src/hb-ot-shape-complex-indic.cc
+++ b/src/hb-ot-shape-complex-indic.cc
@@ -151,7 +151,7 @@ consonant_position (hb_codepoint_t u, hb_ot_map_t *map, hb_font_t *font)
 				)
 #define MATRA_POS_TOP(u)	( /* BENG and MLYM don't have top matras. */ \
 				  IS_DEVA(u) ? POS_AFTER_SUB  : \
-				  IS_GURM(u) ? POS_AFTER_SUB  : \
+				  IS_GURM(u) ? POS_AFTER_POST  : /* Deviate from spec */ \
 				  IS_GUJA(u) ? POS_AFTER_SUB  : \
 				  IS_ORYA(u) ? POS_AFTER_MAIN : \
 				  IS_TAML(u) ? POS_AFTER_SUB  : \
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/misc/misc.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/misc/misc.txt
index bbc6646..27a39f6 100644
--- a/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/misc/misc.txt
+++ b/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/misc/misc.txt
@@ -1 +1,2 @@
 ਕ੍ਹ
+ਤ੍ਯੋ



More information about the HarfBuzz mailing list