Lines Matching refs:oldSubTable
1687 def splitMultipleSubst(oldSubTable, newSubTable, overflowRecord): argument
1689 oldMapping = sorted(oldSubTable.mapping.items())
1708 del oldSubTable.mapping[key]
1712 def splitAlternateSubst(oldSubTable, newSubTable, overflowRecord): argument
1714 if hasattr(oldSubTable, 'sortCoverageLast'):
1715 newSubTable.sortCoverageLast = oldSubTable.sortCoverageLast
1717 oldAlts = sorted(oldSubTable.alternates.items())
1736 del oldSubTable.alternates[key]
1741 def splitLigatureSubst(oldSubTable, newSubTable, overflowRecord): argument
1743 oldLigs = sorted(oldSubTable.ligatures.items())
1762 del oldSubTable.ligatures[key]
1767 def splitPairPos(oldSubTable, newSubTable, overflowRecord): argument
1768 st = oldSubTable
1770 newSubTable.Format = oldSubTable.Format
1771 if oldSubTable.Format == 1 and len(oldSubTable.PairSet) > 1:
1773 setattr(newSubTable, name, getattr(oldSubTable, name))
1777 newSubTable.Coverage = oldSubTable.Coverage.__class__()
1779 coverage = oldSubTable.Coverage.glyphs
1780 records = oldSubTable.PairSet
1782 oldCount = len(oldSubTable.PairSet) // 2
1784 oldSubTable.Coverage.glyphs = coverage[:oldCount]
1785 oldSubTable.PairSet = records[:oldCount]
1790 oldSubTable.PairSetCount = len(oldSubTable.PairSet)
1795 elif oldSubTable.Format == 2 and len(oldSubTable.Class1Record) > 1:
1796 if not hasattr(oldSubTable, 'Class2Count'):
1797 oldSubTable.Class2Count = len(oldSubTable.Class1Record[0].Class2Record)
1799 setattr(newSubTable, name, getattr(oldSubTable, name))
1804 oldSubTable.DontShare = True
1808 newSubTable.Coverage = oldSubTable.Coverage.__class__()
1809 newSubTable.ClassDef1 = oldSubTable.ClassDef1.__class__()
1811 coverage = oldSubTable.Coverage.glyphs
1812 classDefs = oldSubTable.ClassDef1.classDefs
1813 records = oldSubTable.Class1Record
1815 oldCount = len(oldSubTable.Class1Record) // 2
1818 oldSubTable.Coverage.glyphs = [g for g in coverage if g not in newGlyphs]
1819 oldSubTable.ClassDef1.classDefs = {k:v for k,v in classDefs.items() if v < oldCount}
1820 oldSubTable.Class1Record = records[:oldCount]
1826 oldSubTable.Class1Count = len(oldSubTable.Class1Record)
1834 def splitMarkBasePos(oldSubTable, newSubTable, overflowRecord): argument
1836 classCount = oldSubTable.ClassCount
1847 oldSubTable.MarkCoverage.glyphs,
1848 oldSubTable.MarkArray.MarkRecord
1859 for rec in oldSubTable.BaseArray.BaseRecord:
1866 newSubTable.Format = oldSubTable.Format
1868 oldSubTable.MarkCoverage.glyphs = oldMarkCoverage
1869 newSubTable.MarkCoverage = oldSubTable.MarkCoverage.__class__()
1873 newSubTable.BaseCoverage = oldSubTable.BaseCoverage
1875 oldSubTable.ClassCount = oldClassCount
1878 oldSubTable.MarkArray.MarkRecord = oldMarkRecords
1879 newSubTable.MarkArray = oldSubTable.MarkArray.__class__()
1882 oldSubTable.MarkArray.MarkCount = len(oldMarkRecords)
1885 oldSubTable.BaseArray.BaseRecord = oldBaseRecords
1886 newSubTable.BaseArray = oldSubTable.BaseArray.__class__()
1889 oldSubTable.BaseArray.BaseCount = len(oldBaseRecords)