Lines Matching refs:varfont
24 def getVariationNameIDs(varfont): argument
26 if "fvar" in varfont:
27 fvar = varfont["fvar"]
34 if "STAT" in varfont:
35 stat = varfont["STAT"].table
45 def pruningUnusedNames(varfont): argument
48 origNameIDs = getVariationNameIDs(varfont)
53 exclude = origNameIDs - getVariationNameIDs(varfont)
54 varfont["name"].names[:] = [
55 record for record in varfont["name"].names if record.nameID not in exclude
57 if "ltag" in varfont:
64 for record in varfont["name"].names
67 del varfont["ltag"]
70 def updateNameTable(varfont, axisLimits): argument
104 if "STAT" not in varfont:
106 stat = varfont["STAT"].table
109 fvar = varfont["fvar"]
130 _updateNameRecords(varfont, axisValueTables)
192 def _updateNameRecords(varfont, axisValues): argument
194 nametable = varfont["name"]
195 stat = varfont["STAT"].table
234 varfont,
253 varfont, argument
263 nametable = varfont["name"]
306 varfont, newFamilyName, newStyleName, platform
309 uniqueID = _updateUniqueIdNameRecord(varfont, nameIDs, platform)
317 if "fvar" not in varfont:
321 def _updatePSNameRecord(varfont, familyName, styleName, platform): argument
324 nametable = varfont["name"]
347 def _updateUniqueIdNameRecord(varfont, nameIDs, platform): argument
348 nametable = varfont["name"]
364 fontVersion = _fontVersion(varfont, platform)
365 achVendID = varfont["OS/2"].achVendID