From b19c6b3dec5de690d57b32755bde02b739a62851 Mon Sep 17 00:00:00 2001 From: Sascha Brawer Date: Thu, 7 Jan 2016 09:25:08 +0100 Subject: [PATCH] [feaLib] Add test case for chaining GSUB type 6 to GSUB type 1 --- Lib/fontTools/feaLib/testdata/GSUB_6.fea | 6 ++ Lib/fontTools/feaLib/testdata/GSUB_6.ttx | 74 ++++++++++++++++++++++-- 2 files changed, 76 insertions(+), 4 deletions(-) diff --git a/Lib/fontTools/feaLib/testdata/GSUB_6.fea b/Lib/fontTools/feaLib/testdata/GSUB_6.fea index 94d2603f9..e5ece9d3e 100644 --- a/Lib/fontTools/feaLib/testdata/GSUB_6.fea +++ b/Lib/fontTools/feaLib/testdata/GSUB_6.fea @@ -1,7 +1,13 @@ +lookup ChainedSingleSubst { + substitute [one two] three A' by A.sc; + substitute [B-D]' seven [eight nine] by [B.sc-D.sc]; +} ChainedSingleSubst; + lookup ChainedMultipleSubst { substitute [A-C a-c] [D d] E c_t' V [W w] [X-Z x-z] by c t; } ChainedMultipleSubst; feature test { + lookup ChainedSingleSubst; lookup ChainedMultipleSubst; } test; diff --git a/Lib/fontTools/feaLib/testdata/GSUB_6.ttx b/Lib/fontTools/feaLib/testdata/GSUB_6.ttx index 3123ad5fa..d1846efdd 100644 --- a/Lib/fontTools/feaLib/testdata/GSUB_6.ttx +++ b/Lib/fontTools/feaLib/testdata/GSUB_6.ttx @@ -22,14 +22,80 @@ - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -37,7 +103,7 @@ - + @@ -81,7 +147,7 @@ - +