Lines Matching refs:gsub
274 gsub = font["GSUB"].table
276 if gsub.Version < 0x00010001:
277 gsub.Version = 0x00010001 # allow gsub.FeatureVariations
279 gsub.FeatureVariations = None # delete any existing FeatureVariations
281 for feature in gsub.FeatureList.FeatureRecord:
285 gsub.FeatureList.FeatureRecord.append(rvrnFeature)
287 sortFeatureList(gsub)
288 rvrnFeatureIndex = gsub.FeatureList.FeatureRecord.index(rvrnFeature)
290 for scriptRecord in gsub.ScriptList.ScriptRecord:
300 lookupMap = buildSubstitutionLookups(gsub, allSubstitutions)
316 gsub.FeatureVariations = buildFeatureVariations(featureVariationRecords)
326 gsub = fontTable.table = ot.GSUB()
327 gsub.Version = 0x00010001 # allow gsub.FeatureVariations
329 gsub.ScriptList = ot.ScriptList()
330 gsub.ScriptList.ScriptRecord = []
331 gsub.FeatureList = ot.FeatureList()
332 gsub.FeatureList.FeatureRecord = []
333 gsub.LookupList = ot.LookupList()
334 gsub.LookupList.Lookup = []
348 gsub.ScriptList.ScriptRecord.append(srec)
349 gsub.FeatureVariations = None
370 def buildSubstitutionLookups(gsub, allSubstitutions): argument
373 firstIndex = len(gsub.LookupList.Lookup)
381 gsub.LookupList.Lookup.append(lookup)
382 assert gsub.LookupList.Lookup[lookupMap[subst]] is lookup