From ab8f9ee785cfe77d96b5d98d458414aa78c77dad Mon Sep 17 00:00:00 2001 From: Sascha Brawer Date: Tue, 26 Jan 2016 12:45:56 +0100 Subject: [PATCH] [feaLib] Add test case for bug 463 https://github.com/behdad/fonttools/issues/463 --- Lib/fontTools/feaLib/builder_test.py | 1 + Lib/fontTools/feaLib/testdata/bug463.fea | 6 ++ Lib/fontTools/feaLib/testdata/bug463.ttx | 110 +++++++++++++++++++++++ 3 files changed, 117 insertions(+) create mode 100644 Lib/fontTools/feaLib/testdata/bug463.fea create mode 100644 Lib/fontTools/feaLib/testdata/bug463.ttx diff --git a/Lib/fontTools/feaLib/builder_test.py b/Lib/fontTools/feaLib/builder_test.py index d89660e4d..fce3a699b 100644 --- a/Lib/fontTools/feaLib/builder_test.py +++ b/Lib/fontTools/feaLib/builder_test.py @@ -51,6 +51,7 @@ class BuilderTest(unittest.TestCase): spec4h1 spec5d1 spec5d2 spec5fi1 spec5fi2 spec5fi3 spec5fi4 spec5h1 spec6d2 spec6e spec6f spec6h_ii spec6h_iii_1 spec8a spec9b spec9c1 spec9c2 spec9c3 + bug463 """.split() def __init__(self, methodName): diff --git a/Lib/fontTools/feaLib/testdata/bug463.fea b/Lib/fontTools/feaLib/testdata/bug463.fea new file mode 100644 index 000000000..e7e21af0c --- /dev/null +++ b/Lib/fontTools/feaLib/testdata/bug463.fea @@ -0,0 +1,6 @@ +# https://github.com/behdad/fonttools/issues/463 +feature ordn { + @DIGIT = [zero one two three four five six seven eight nine]; + sub @DIGIT [A a]' by ordfeminine; + sub @DIGIT [O o]' by ordmasculine; +} ordn; diff --git a/Lib/fontTools/feaLib/testdata/bug463.ttx b/Lib/fontTools/feaLib/testdata/bug463.ttx new file mode 100644 index 000000000..7b025e7d4 --- /dev/null +++ b/Lib/fontTools/feaLib/testdata/bug463.ttx @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +