diff --git a/LICENSE.external b/LICENSE.external index 88a0272f5..2bc4dab3e 100644 --- a/LICENSE.external +++ b/LICENSE.external @@ -26,6 +26,10 @@ XITS font project This Font Software is licensed under the SIL Open Font License, Version 1.1. +Iosevka + Copyright (c) 2015-2020 Belleve Invis (belleve@typeof.net). + This Font Software is licensed under the SIL Open Font License, Version 1.1. + This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL diff --git a/Tests/subset/data/TestContextSubstFormat3.ttx b/Tests/subset/data/TestContextSubstFormat3.ttx new file mode 100644 index 000000000..899b037e3 --- /dev/null +++ b/Tests/subset/data/TestContextSubstFormat3.ttx @@ -0,0 +1,610 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Copyright (c) 2015-2019 Belleve Invis. + + + Iosevka Medium + + + Regular + + + Iosevka Medium Version 3.0.0-rc.8 + + + Iosevka Medium + + + Version 3.0.0-rc.8; ttfautohint (v1.8.3) + + + Iosevka-Medium + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Tests/subset/subset_test.py b/Tests/subset/subset_test.py index 2493daff1..2cce9baf5 100644 --- a/Tests/subset/subset_test.py +++ b/Tests/subset/subset_test.py @@ -56,7 +56,7 @@ class SubsetTest(unittest.TestCase): lines.append(line.rstrip() + os.linesep) return lines - def expect_ttx(self, font, expected_ttx, tables): + def expect_ttx(self, font, expected_ttx, tables=None): path = self.temp_path(suffix=".ttx") font.saveXML(path, tables=tables) actual = self.read_ttx(path) @@ -732,6 +732,17 @@ class SubsetTest(unittest.TestCase): self.assertEqual(ttf.flavor, None) + def test_subset_context_subst_format_3(self): + # https://github.com/fonttools/fonttools/issues/1879 + # Test font contains 'calt' feature with Format 3 ContextSubst lookup subtables + ttx = self.getpath("TestContextSubstFormat3.ttx") + font, fontpath = self.compile_font(ttx, ".ttf") + subsetpath = self.temp_path(".ttf") + subset.main([fontpath, "--unicodes=*", "--output-file=%s" % subsetpath]) + subsetfont = TTFont(subsetpath) + # check all glyphs are kept via GSUB closure, no changes expected + self.expect_ttx(subsetfont, ttx) + @pytest.fixture def featureVarsTestFont():