Lines Matching refs:getEncoding
4 from fontTools.misc.encodingTools import getEncoding
10 self.assertEqual(getEncoding(3, 0, None), "utf_16_be") # MS Symbol is Unicode as well
11 self.assertEqual(getEncoding(3, 1, None), "utf_16_be")
12 self.assertEqual(getEncoding(3, 10, None), "utf_16_be")
13 self.assertEqual(getEncoding(0, 3, None), "utf_16_be")
16 self.assertEqual(getEncoding(1, 0, 17), "mac_turkish")
17 self.assertEqual(getEncoding(1, 0, 37), "mac_romanian")
18 self.assertEqual(getEncoding(1, 0, 45), "mac_roman")
21 encoding = getEncoding(1, 1, 0) # Mac Japanese
26 self.assertEqual(getEncoding(10, 11, 12), None)
27 self.assertEqual(getEncoding(10, 11, 12, "ascii"), "ascii")
28 self.assertEqual(getEncoding(10, 11, 12, default="ascii"), "ascii")