safeguard slnt_axis condition
@@ -131,6 +131,7 @@ def is_variable_font(ttFont):
@condition
def slnt_axis(ttFont):
+ if "fvar" in ttFont:
for axis in ttFont["fvar"].axes:
if axis.axisTag == "slnt":
return axis
