Lines Matching refs:gsub
280 gsub = font["GSUB"].table
282 if gsub.Version < 0x00010001:
283 gsub.Version = 0x00010001 # allow gsub.FeatureVariations
285 gsub.FeatureVariations = None # delete any existing FeatureVariations
288 for index, feature in enumerate(gsub.FeatureList.FeatureRecord):
294 gsub.FeatureList.FeatureRecord.append(varFeature)
295 gsub.FeatureList.FeatureCount = len(gsub.FeatureList.FeatureRecord)
297 sortFeatureList(gsub)
298 varFeatureIndex = gsub.FeatureList.FeatureRecord.index(varFeature)
300 for scriptRecord in gsub.ScriptList.ScriptRecord:
317 lookupMap = buildSubstitutionLookups(gsub, allSubstitutions)
335 … existingLookupIndices = gsub.FeatureList.FeatureRecord[varFeatureIndex].Feature.LookupListIndex
339 gsub.FeatureVariations = buildFeatureVariations(featureVariationRecords)
349 gsub = fontTable.table = ot.GSUB()
350 gsub.Version = 0x00010001 # allow gsub.FeatureVariations
352 gsub.ScriptList = ot.ScriptList()
353 gsub.ScriptList.ScriptRecord = []
354 gsub.FeatureList = ot.FeatureList()
355 gsub.FeatureList.FeatureRecord = []
356 gsub.LookupList = ot.LookupList()
357 gsub.LookupList.Lookup = []
371 gsub.ScriptList.ScriptRecord.append(srec)
372 gsub.ScriptList.ScriptCount = 1
373 gsub.FeatureVariations = None
394 def buildSubstitutionLookups(gsub, allSubstitutions): argument
397 firstIndex = len(gsub.LookupList.Lookup)
405 gsub.LookupList.Lookup.append(lookup)
406 assert gsub.LookupList.Lookup[lookupMap[subst]] is lookup
407 gsub.LookupList.LookupCount = len(gsub.LookupList.Lookup)