[symfont] More

This commit is contained in:
Behdad Esfahbod 2017-02-19 19:36:27 -06:00
parent aaa950ea59
commit afe3407ca5

View File

@ -267,7 +267,7 @@ class GlyphStatistics(object):
@property
def Slant(self):
slant = self.Covariance / self.VarianceY
slant = self.Covariance / self.VarianceY if self.VarianceY else 0
if abs(slant) < 1e-3: slant = 0
return slant