Lines Matching refs:oldSubTable

1229 def splitAlternateSubst(oldSubTable, newSubTable, overflowRecord):  argument
1231 newSubTable.Format = oldSubTable.Format
1232 if hasattr(oldSubTable, 'sortCoverageLast'):
1233 newSubTable.sortCoverageLast = oldSubTable.sortCoverageLast
1235 oldAlts = sorted(oldSubTable.alternates.items())
1254 del oldSubTable.alternates[key]
1259 def splitLigatureSubst(oldSubTable, newSubTable, overflowRecord): argument
1261 newSubTable.Format = oldSubTable.Format
1262 oldLigs = sorted(oldSubTable.ligatures.items())
1281 del oldSubTable.ligatures[key]
1286 def splitPairPos(oldSubTable, newSubTable, overflowRecord): argument
1287 st = oldSubTable
1289 newSubTable.Format = oldSubTable.Format
1290 if oldSubTable.Format == 1 and len(oldSubTable.PairSet) > 1:
1292 setattr(newSubTable, name, getattr(oldSubTable, name))
1296 newSubTable.Coverage = oldSubTable.Coverage.__class__()
1298 coverage = oldSubTable.Coverage.glyphs
1299 records = oldSubTable.PairSet
1301 oldCount = len(oldSubTable.PairSet) // 2
1303 oldSubTable.Coverage.glyphs = coverage[:oldCount]
1304 oldSubTable.PairSet = records[:oldCount]
1309 oldSubTable.PairSetCount = len(oldSubTable.PairSet)
1314 elif oldSubTable.Format == 2 and len(oldSubTable.Class1Record) > 1:
1315 if not hasattr(oldSubTable, 'Class2Count'):
1316 oldSubTable.Class2Count = len(oldSubTable.Class1Record[0].Class2Record)
1318 setattr(newSubTable, name, getattr(oldSubTable, name))
1323 oldSubTable.DontShare = True
1327 newSubTable.Coverage = oldSubTable.Coverage.__class__()
1328 newSubTable.ClassDef1 = oldSubTable.ClassDef1.__class__()
1330 coverage = oldSubTable.Coverage.glyphs
1331 classDefs = oldSubTable.ClassDef1.classDefs
1332 records = oldSubTable.Class1Record
1334 oldCount = len(oldSubTable.Class1Record) // 2
1337 oldSubTable.Coverage.glyphs = [g for g in coverage if g not in newGlyphs]
1338 oldSubTable.ClassDef1.classDefs = {k:v for k,v in classDefs.items() if v < oldCount}
1339 oldSubTable.Class1Record = records[:oldCount]
1345 oldSubTable.Class1Count = len(oldSubTable.Class1Record)
1353 def splitMarkBasePos(oldSubTable, newSubTable, overflowRecord): argument
1355 classCount = oldSubTable.ClassCount
1366 oldSubTable.MarkCoverage.glyphs,
1367 oldSubTable.MarkArray.MarkRecord
1377 for rec in oldSubTable.BaseArray.BaseRecord:
1384 newSubTable.Format = oldSubTable.Format
1386 oldSubTable.MarkCoverage.glyphs = oldMarkCoverage
1387 newSubTable.MarkCoverage = oldSubTable.MarkCoverage.__class__()
1388 newSubTable.MarkCoverage.Format = oldSubTable.MarkCoverage.Format
1392 newSubTable.BaseCoverage = oldSubTable.BaseCoverage
1394 oldSubTable.ClassCount = oldClassCount
1397 oldSubTable.MarkArray.MarkRecord = oldMarkRecords
1398 newSubTable.MarkArray = oldSubTable.MarkArray.__class__()
1401 oldSubTable.MarkArray.MarkCount = len(oldMarkRecords)
1404 oldSubTable.BaseArray.BaseRecord = oldBaseRecords
1405 newSubTable.BaseArray = oldSubTable.BaseArray.__class__()
1408 oldSubTable.BaseArray.BaseCount = len(oldBaseRecords)