Lines Matching +full:merge +full:- +full:base
2 Merge OpenType Layout tables (GDEF / GPOS / GSUB).
61 assert method.__name__ == 'merge'
69 "Oops, class '%s' has merge function for '%s' defined already." % (clazz.__name__, attr)
134 # need to special-case Enums as have __dict__ but are not regular 'objects',
163 def merge(merger, self, lst): function
200 - Combined glyph list,
201 - If values_lst is None, return input glyph lists, but padded with None when a glyph
202 was missing in a list. Otherwise, return values_lst list-of-list, padded with None
232 def merge(merger, self, lst): function
239 def merge(merger, self, lst): function
283 def merge(merger, self, lst): function
314 # Note!!! This *might* result in behavior change if ValueFormat2-zeroedness
324 # Merge everything else; though, there shouldn't be anything else. :)
330 def merge(merger, self, lst): function
371 # Merge everything else; makes sure Format is the same.
410 # Class-0 is special. It's "everything else".
415 # Collect anything without a non-zero class into class=zero.
465 # Follow-up to e6125b353e1f54a0280ded5434b8e40d042de69f,
485 rec1 = matrix[klass] # TODO handle out-of-range?
541 assert l == subtables[-1]
549 def merge(merger, self, lst): function
563 # as merge might have created new values.
587 def _MarkBasePosFormat1_merge(self, lst, merger, Mark='Mark', Base='Base'): argument
598 [getattr(l, Base+'Coverage').glyphs for l in lst],
599 [getattr(getattr(l, Base+'Array'), Base+'Record') for l in lst])
600 getattr(self, Base+'Coverage').glyphs = BaseCoverageGlyphs
619 # "top-right" in another master, we shouldn't do that, as any
648 rec = getattr(ot, Base+'Record')()
650 setattr(rec, Base+'Anchor', anchors)
651 glyphAnchors = [[] if r is None else getattr(r, Base+'Anchor')
654 l.extend([None] * (self.ClassCount - len(l)))
664 array = getattr(ot, Base+'Array')()
665 setattr(array, Base+'Record', records)
666 setattr(array, Base+'Count', len(records))
667 setattr(self, Base+'Array', array)
670 def merge(merger, self, lst): function
674 subtable="mark-to-base positioning lookup",
681 raise UnsupportedFormat(merger, subtable="mark-to-base positioning lookup")
684 def merge(merger, self, lst): function
688 subtable="mark-to-mark positioning lookup",
695 raise UnsupportedFormat(merger, subtable="mark-to-mark positioning lookup")
768 """Merge multiple Format1 subtables at the beginning of lst,
769 and merge multiple consecutive Format2 subtables that have the same
781 while i > 0 and lst[i - 1].Format == 2:
782 i -= 1
812 def merge(merger, self, lst): function
837 # Merge those before continuing.
863 # If format-1 subtable created during canonicalization is empty, remove it.
867 self.SubTableCount -= 1
869 # If format-2 subtable created during canonicalization is empty, remove it.
870 assert len(self.SubTable) >= 1 and self.SubTable[-1].Format == 2
871 if not self.SubTable[-1].Coverage.glyphs:
872 self.SubTable.pop(-1)
873 self.SubTableCount -= 1
917 def merge(merger, self, lst): function
925 def merge(merger, self, lst): function
935 def merge(merger, self, lst): function
968 def merge(merger, self, lst): function
990 def merge(merger, self, lst): function
1020 def merge(merger, self, lst): function
1093 base, varIdx = store_builder.storeMasters(master_values)
1094 return base, builder.buildVarDevTable(varIdx)
1097 def merge(merger, self, lst): function
1106 def merge(merger, self, lst): function
1115 def merge(merger, self, lst): function
1126 def merge(merger, self, lst): function
1145 multiple delta-set indices (via VarIndexBase).
1147 as they become variable (e.g. Affine2x3 -> VarAffine2x3) so this merger takes
1171 # The merger modifies the destination COLR table in-place. If this contains
1177 # unique layers referenced from non-overlapping PaintColrLayers throughout
1178 # the base paint graphs.
1235 # VarStore treats deltas for fixed-size floats as integers, so we
1254 def storeVariationIndices(self, varIdxes) -> int:
1262 for i in range(len(self.varIdxes) - len(varIdxes) + 1):
1269 for n in range(len(varIdxes)-1, 0, -1):
1270 if self.varIdxes[-n:] == varIdxes[:n]:
1271 varIndexBase = len(self.varIdxes) - n
1283 def mergeVariableAttrs(self, out, lst, attrs) -> int:
1302 getattr(type(path[-1].value), "VarType", None) is not None
1305 st = path[-1]
1311 parent = path[-2].value
1321 Each base paint graph is fully DFS-traversed (with exception of PaintColrGlyph
1344 # de-treeify any nested PaintColrLayers, append unique copies to
1366 def merge(merger, self, lst): function
1373 # missing base glyphs don't participate in the merge
1377 e.cause["location"] = f"base glyph {g!r}"
1384 def merge(merger, self, lst): function
1385 # nothing to merge for LayerList, assuming we have already merged all PaintColrLayers
1431 # if the list is still too big we need to tree-fy it
1471 def merge(merger, self, lst): function
1505 # Convert Affine2x3 -> VarAffine2x3, ColorLine -> VarColorLine, etc.
1513 def merge(merger, self, lst): function
1530 def merge(merger, self, lst): function
1539 def merge(merger, self, lst): function
1540 # 'sparse' in that we allow non-default masters to omit ClipBox entries