[VarComposites/compile] Better uniform-scale check
This commit is contained in:
parent
d8f6d0c6af
commit
38bbbf7fbc
@ -1828,7 +1828,7 @@ class GlyphVarComponent(object):
|
|||||||
if (
|
if (
|
||||||
flags & VarComponentFlags.HAVE_SCALE_X
|
flags & VarComponentFlags.HAVE_SCALE_X
|
||||||
and flags & VarComponentFlags.HAVE_SCALE_Y
|
and flags & VarComponentFlags.HAVE_SCALE_Y
|
||||||
and self.scaleX == self.scaleY
|
and fl2fi(self.scaleX, 10) == fl2fi(self.scaleY, 10)
|
||||||
):
|
):
|
||||||
flags |= VarComponentFlags.UNIFORM_SCALE
|
flags |= VarComponentFlags.UNIFORM_SCALE
|
||||||
flags ^= VarComponentFlags.HAVE_SCALE_Y
|
flags ^= VarComponentFlags.HAVE_SCALE_Y
|
||||||
|
Loading…
x
Reference in New Issue
Block a user