Lines Matching refs:subrs
1376 def subset_subroutines(self, subrs, gsubrs): argument
1382 p[i-1] = subrs._used.index(p[i-1] + subrs._old_bias) - subrs._new_bias
1420 for subrs in [localSubrs, globalSubrs]:
1421 if subrs and not hasattr(subrs, "_used"):
1422 subrs._used = set()
1621 subrs = getattr(c.private, "Subrs", [])
1622 decompiler = _DehintingT2Decompiler(css, subrs, c.globalSubrs)
1648 subrs = getattr(c.private, "Subrs", [])
1649 decompiler = _MarkingT2Decompiler(subrs, c.globalSubrs)
1658 subrs = set(subrs) # Remove duplicates
1661 for subrs in all_subrs:
1662 if not hasattr(subrs, '_used'):
1663 subrs._used = set()
1664 subrs._used = _uniq_sort(subrs._used)
1665 subrs._old_bias = psCharStrings.calcSubrBias(subrs)
1666 subrs._new_bias = psCharStrings.calcSubrBias(subrs._used)
1671 subrs = getattr(c.private, "Subrs", [])
1672 c.subset_subroutines (subrs, font.GlobalSubrs)
1675 for subrs in all_subrs:
1677 if subrs == font.GlobalSubrs:
1683 local_subrs = subrs
1685 subrs.items = [subrs.items[i] for i in subrs._used]
1686 subrs.count = len(subrs.items)
1687 del subrs.file
1688 if hasattr(subrs, 'offsets'):
1689 del subrs.offsets
1691 for i in range (subrs.count):
1692 subrs[i].subset_subroutines (local_subrs, font.GlobalSubrs)
1695 for subrs in all_subrs:
1696 del subrs._used, subrs._old_bias, subrs._new_bias