Skip to content

Commit

Permalink
Pass flags down when copying the data
Browse files Browse the repository at this point in the history
So copies can also be "strict".
  • Loading branch information
justvanrossum authored Dec 8, 2022
1 parent 678c071 commit 1a2f72e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/fontMath/mathGlyph.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def __ne__(self, other):

def copy(self):
"""return a new MathGlyph containing all data in self"""
return MathGlyph(self)
return MathGlyph(self, scaleComponentTransform=self.scaleComponentTransform, strict=self.strict)

def copyWithoutMathSubObjects(self):
"""
Expand All @@ -143,7 +143,7 @@ def copyWithoutMathSubObjects(self):
this is used mainly for internal glyph math.
"""
n = MathGlyph(None)
n = MathGlyph(None, scaleComponentTransform=self.scaleComponentTransform, strict=self.strict)
n.name = self.name
if self.unicodes is not None:
n.unicodes = list(self.unicodes)
Expand Down

0 comments on commit 1a2f72e

Please sign in to comment.