• Home
  • Raw
  • Download

Lines Matching +full:merge +full:- +full:base

2 Merge OpenType Layout tables (GDEF / GPOS / GSUB).
63 assert method.__name__ == "merge"
72 "Oops, class '%s' has merge function for '%s' defined already."
139 # need to special-case Enums as have __dict__ but are not regular 'objects',
171 def merge(merger, self, lst): function
213 - Combined glyph list,
214 - If values_lst is None, return input glyph lists, but padded with None when a glyph
215 was missing in a list. Otherwise, return values_lst list-of-list, padded with None
248 def merge(merger, self, lst): function
256 def merge(merger, self, lst): function
309 def merge(merger, self, lst): function
349 # Note!!! This *might* result in behavior change if ValueFormat2-zeroedness
361 # Merge everything else; though, there shouldn't be anything else. :)
371 def merge(merger, self, lst): function
429 # Merge everything else; makes sure Format is the same.
471 # Class-0 is special. It's "everything else".
476 # Collect anything without a non-zero class into class=zero.
529 # Follow-up to e6125b353e1f54a0280ded5434b8e40d042de69f,
557 rec1 = matrix[klass] # TODO handle out-of-range?
623 assert l == subtables[-1]
632 def merge(merger, self, lst): function
650 # as merge might have created new values.
675 def _MarkBasePosFormat1_merge(self, lst, merger, Mark="Mark", Base="Base"): argument
687 [getattr(l, Base + "Coverage").glyphs for l in lst],
688 [getattr(getattr(l, Base + "Array"), Base + "Record") for l in lst],
690 getattr(self, Base + "Coverage").glyphs = BaseCoverageGlyphs
709 # "top-right" in another master, we shouldn't do that, as any
738 rec = getattr(ot, Base + "Record")()
740 setattr(rec, Base + "Anchor", anchors)
742 [] if r is None else getattr(r, Base + "Anchor") for r in glyphRecords
745 l.extend([None] * (self.ClassCount - len(l)))
755 array = getattr(ot, Base + "Array")()
756 setattr(array, Base + "Record", records)
757 setattr(array, Base + "Count", len(records))
758 setattr(self, Base + "Array", array)
762 def merge(merger, self, lst): function
766 subtable="mark-to-base positioning lookup",
773 raise UnsupportedFormat(merger, subtable="mark-to-base positioning lookup")
777 def merge(merger, self, lst): function
781 subtable="mark-to-mark positioning lookup",
788 raise UnsupportedFormat(merger, subtable="mark-to-mark positioning lookup")
872 """Merge multiple Format1 subtables at the beginning of lst,
873 and merge multiple consecutive Format2 subtables that have the same
885 while i > 0 and lst[i - 1].Format == 2:
886 i -= 1
917 def merge(merger, self, lst): function
941 def merge(merger, self, lst): function
950 def merge(merger, self, lst): function
975 # Merge those before continuing.
1009 # If format-1 subtable created during canonicalization is empty, remove it.
1013 self.SubTableCount -= 1
1015 # If format-2 subtable created during canonicalization is empty, remove it.
1016 assert len(self.SubTable) >= 1 and self.SubTable[-1].Format == 2
1017 if not self.SubTable[-1].Coverage.glyphs:
1018 self.SubTable.pop(-1)
1019 self.SubTableCount -= 1
1067 def merge(merger, self, lst): function
1078 def merge(merger, self, lst): function
1093 def merge(merger, self, lst): function
1131 def merge(merger, self, lst): function
1153 def merge(merger, self, lst): function
1183 def merge(merger, self, lst): function
1257 base, varIdx = store_builder.storeMasters(master_values)
1258 return base, builder.buildVarDevTable(varIdx)
1262 def merge(merger, self, lst): function
1274 def merge(merger, self, lst): function
1286 def merge(merger, self, lst): function
1302 def merge(merger, self, lst): function
1323 multiple delta-set indices (via VarIndexBase).
1325 as they become variable (e.g. Affine2x3 -> VarAffine2x3) so this merger takes
1349 # The merger modifies the destination COLR table in-place. If this contains
1355 # unique layers referenced from non-overlapping PaintColrLayers throughout
1356 # the base paint graphs.
1411 # VarStore treats deltas for fixed-size floats as integers, so we
1430 def storeVariationIndices(self, varIdxes) -> int:
1438 for i in range(len(self.varIdxes) - len(varIdxes) + 1):
1445 for n in range(len(varIdxes) - 1, 0, -1):
1446 if self.varIdxes[-n:] == varIdxes[:n]:
1447 varIndexBase = len(self.varIdxes) - n
1459 def mergeVariableAttrs(self, out, lst, attrs) -> int:
1478 getattr(type(path[-1].value), "VarType", None) is not None
1481 st = path[-1]
1487 parent = path[-2].value
1497 Each base paint graph is fully DFS-traversed (with exception of PaintColrGlyph
1520 # de-treeify any nested PaintColrLayers, append unique copies to
1542 def merge(merger, self, lst): function
1549 # missing base glyphs don't participate in the merge
1553 e.cause["location"] = f"base glyph {g!r}"
1560 def merge(merger, self, lst): function
1561 # nothing to merge for LayerList, assuming we have already merged all PaintColrLayers
1607 # if the list is still too big we need to tree-fy it
1647 def merge(merger, self, lst): function
1680 # Convert Affine2x3 -> VarAffine2x3, ColorLine -> VarColorLine, etc.
1688 def merge(merger, self, lst): function
1705 def merge(merger, self, lst): function
1714 def merge(merger, self, lst): function
1715 # 'sparse' in that we allow non-default masters to omit ClipBox entries