Lines Matching refs:ttFont
81 def __init__(self, path, ttFont, res_id=None): argument
85 fullname = ttFont['name'].getName(4, 1, 0) # Full name, mac, default encoding
86 familyname = ttFont['name'].getName(1, 1, 0) # Fam. name, mac, default encoding
87 psname = ttFont['name'].getName(6, 1, 0) # PostScript name, etc.
102 self.ttFont = ttFont
127 del self.ttFont
161 scale = 4096 / self.ttFont['head'].unitsPerEm
162 fond.ffAscent = scale * self.ttFont['hhea'].ascent
163 fond.ffDescent = scale * self.ttFont['hhea'].descent
164 fond.ffWidMax = scale * self.ttFont['hhea'].advanceWidthMax
171 cmap = self.ttFont['cmap'].getcmap(1, 0)
176 if 'kern' in self.ttFont:
177 kern = self.ttFont['kern'].getkern(0)
185 if 'hmtx' in self.ttFont:
186 hmtx = self.ttFont['hmtx']