Home | History | Annotate | Download | only in fontTools

Lines Matching refs:Encoding

223 				file.write(tobytes(item, encoding="latin1"))
672 return tostr(value, encoding='ascii')
674 return tobytes(value, encoding='ascii')
676 xmlWriter.simpletag(name, value=tostr(value, encoding="ascii"))
679 return tobytes(attrs["value"], encoding=("ascii"))
683 return tostr(value, encoding='latin1')
685 return tobytes(value, encoding='latin1')
687 xmlWriter.simpletag(name, value=tostr(value, encoding="latin1"))
690 return tobytes(attrs["value"], encoding=("latin1"))
935 def __init__(self, strings, encoding, parent):
936 assert not isinstance(encoding, basestring)
937 data0 = packEncoding0(parent.dictObj.charset, encoding, parent.strings)
938 data1 = packEncoding1(parent.dictObj.charset, encoding, parent.strings)
946 self.parent.rawDict["Encoding"] = pos
967 print("loading Encoding at %s" % value)
971 raise NotImplementedError("Encoding supplements are not yet supported")
974 encoding = parseEncoding0(parent.charset, file, haveSupplement,
977 encoding = parseEncoding1(parent.charset, file, haveSupplement,
979 return encoding
1006 encoding = [".notdef"] * 256
1013 encoding[code] = glyphName
1014 return encoding
1019 encoding = [".notdef"] * 256
1023 encoding[code] = charset[glyphID]
1024 return encoding
1028 encoding = [".notdef"] * 256
1034 encoding[code] = charset[glyphID]
1037 return encoding
1039 def packEncoding0(charset, encoding, strings):
1042 for code in range(len(encoding)):
1043 name = encoding[code]
1061 def packEncoding1(charset, encoding, strings):
1064 for code in range(len(encoding)):
1065 name = encoding[code]
1250 (16, 'Encoding', 'number', 0, EncodingConverter()),
1401 if hasattr(self.dictObj, "Encoding"):
1402 encoding = self.dictObj.Encoding
1403 if not isinstance(encoding, basestring):
1404 children.append(EncodingCompiler(strings, encoding, self))
1546 self.skipNames = ['Encoding']
1586 self.skipNames = ['Encoding']
1607 strings = [tostr(s, encoding="latin1") for s in Index(file)]