Hi Behdad,
I have added few test cases for Lohit Devanagari, tried to cover single
combination for each Devanagari feature will provide patch for other Lohit
fonts soon.
Pango output 0xffffff whenever there is ZWNJ/ZWJ bug there is no such glyph
index present in font, dunno what to write in test case for that. I have
ignored it for now.
Thanks,
Pravin Satpute
diff -rup harfbuzz/test/test-shape-complex.c harfbuzz-mod/test/test-shape-complex.c
--- harfbuzz/test/test-shape-complex.c 2011-11-01 17:29:21.765335915 +0530
+++ harfbuzz-mod/test/test-shape-complex.c 2011-11-01 17:30:34.755436281 +0530
@@ -181,6 +181,61 @@ static const test_set_t tests_devanagari
}
};
+static const test_set_t tests_devanagari3 = {
+ {"Lohit-Devanagari.ttf", 0},
+ {
+ { "I-Matra",
+ { 0x093f, 0 },
+ { 0x006f, 0x00b4, 0 }
+ },
+ { "Ka Halant SSA",
+ { 0x0915, 0x094d, 0x0937, 0 },
+ { 0x00c4, 0 }
+ },
+ { "Ka Halant ZWJ SSA",
+ { 0x0915, 0x094d, 0x200d, 0x0937, 0 },
+ { 0x00c6, 0x0067,0 } //pango returns glyphs name (Hex fffffff ) for ZWJ as well
+ },
+ { "Ka Halant ZWNJ SSA",
+ { 0x0915, 0x094d, 0x200c, 0x0937, 0 },
+ { 0x00c6, 0x0067,0 } //pango returns glyphs name (Hex fffffff ) for ZWNJ
+ },
+ { "Ka Halant ZWJ",
+ { 0x0915, 0x094d, 0x200d, 0 },
+ { 0x00c6, 0 } //pango returns glyphs name (Hex fffffff ) for ZWJ
+ },
+ { "Ka MatraI",
+ { 0x0915, 0x093f, 0 },
+ { 0x006f, 0x0045, 0 }
+ },
+ { "Ra Halant Ka",
+ { 0x0930, 0x094d, 0x0915, 0 },
+ { 0x0045, 0x00bd, 0 }
+ },
+ { "Ra Halant Ka MatraI",
+ { 0x0930, 0x094d, 0x0915, 0x093f, 0 },
+ { 0x006f, 0x0045, 0x00bd, 0 }
+ },
+ { "Ka Nukta",
+ { 0x0915, 0x093c, 0 },
+ { 0x0085, 0 }
+ },
+ { "Ra Halant Ka Halant Ra I-Matra",
+ { 0x0930, 0x094d, 0x0915, 0x094d, 0x0930, 0x093f, 0 },
+ { 0x010b, 0x006f, 0x00bd, 0 }
+ },
+ { "Chha Halant Ra",
+ { 0x091b, 0x094d, 0x0930, 0x094d, 0x0915, 0 },
+ { 0x004b, 0x00c0, 0 }
+ },
+ { "Tta Halant Ra U-Matra",
+ { 0x091f, 0x094d, 0x0930, 0x0941, 0 },
+ { 0x004f, 0x0103, 0 }
+ },
+ {{0}}
+ }
+};
+
static const test_set_t tests_bengali1 = {
{"AkaashNormal.ttf", 0},
{
@@ -1151,6 +1206,7 @@ main (int argc, char **argv)
TEST_SET (devanagari1);
TEST_SET (devanagari2);
+ TEST_SET (devanagari3);
TEST_SET (bengali1);
TEST_SET (bengali2);
TEST_SET (bengali3);
_______________________________________________
HarfBuzz mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/harfbuzz