Lines Matching refs:afm
16 afm = afmLib.AFM(AFM)
17 self.assertEqual(sorted(afm.kernpairs()),
19 self.assertEqual(afm['V', 'A'], -60)
20 self.assertEqual(afm['V', 'd'], 30)
21 self.assertEqual(afm['A'], (65, 668, (8, -25, 660, 666)))
24 afm = afmLib.AFM(AFM)
25 newAfm, afmData = self.write(afm)
26 self.assertEqual(afm.kernpairs(), newAfm.kernpairs())
27 self.assertEqual(afm.chars(), newAfm.chars())
28 self.assertEqual(afm.comments(), newAfm.comments()[1:]) # skip the "generated by afmLib" comment
29 for pair in afm.kernpairs():
30 self.assertEqual(afm[pair], newAfm[pair])
31 for char in afm.chars():
32 self.assertEqual(afm[char], newAfm[char])
40 def write(afm, sep='\r'): argument
43 afm.write(temp, sep)
46 afm = afmLib.AFM(temp)
50 return afm, afmData