Debian Codegraph @

tests/test1017.py

raw symbols SCIP
1 #Needs: fonts/invalid-gsub.fea
2
3 #Test to ignore invalid substitution lookups when merging feature file
4 import sys, fontforge
5
6 font = fontforge.font()
7 feat = sys.argv[1]
8
9 A = font.createChar(ord("A"), "A")
10 B = font.createChar(ord("B"), "B")
11 a = font.createChar(ord("a"), "a")
12 b = font.createChar(ord("b"), "b")
13 f = font.createChar(ord("f"), "f")
14 l = font.createChar(ord("l"), "l")
15
16 #font.mergeFeature(feat)
17 font.mergeFeature(feat, True)
18
19 #No error
20 sys.exit(0)