Lines Matching refs:gsub
276 gsub = font["GSUB"].table
278 if gsub.Version < 0x00010001:
279 gsub.Version = 0x00010001 # allow gsub.FeatureVariations
281 gsub.FeatureVariations = None # delete any existing FeatureVariations
283 for feature in gsub.FeatureList.FeatureRecord:
287 gsub.FeatureList.FeatureRecord.append(rvrnFeature)
288 gsub.FeatureList.FeatureCount = len(gsub.FeatureList.FeatureRecord)
290 sortFeatureList(gsub)
291 rvrnFeatureIndex = gsub.FeatureList.FeatureRecord.index(rvrnFeature)
293 for scriptRecord in gsub.ScriptList.ScriptRecord:
303 lookupMap = buildSubstitutionLookups(gsub, allSubstitutions)
319 gsub.FeatureVariations = buildFeatureVariations(featureVariationRecords)
329 gsub = fontTable.table = ot.GSUB()
330 gsub.Version = 0x00010001 # allow gsub.FeatureVariations
332 gsub.ScriptList = ot.ScriptList()
333 gsub.ScriptList.ScriptRecord = []
334 gsub.FeatureList = ot.FeatureList()
335 gsub.FeatureList.FeatureRecord = []
336 gsub.LookupList = ot.LookupList()
337 gsub.LookupList.Lookup = []
351 gsub.ScriptList.ScriptRecord.append(srec)
352 gsub.ScriptList.ScriptCount = 1
353 gsub.FeatureVariations = None
374 def buildSubstitutionLookups(gsub, allSubstitutions): argument
377 firstIndex = len(gsub.LookupList.Lookup)
385 gsub.LookupList.Lookup.append(lookup)
386 assert gsub.LookupList.Lookup[lookupMap[subst]] is lookup
387 gsub.LookupList.LookupCount = len(gsub.LookupList.Lookup)