mirror of
https://github.com/rsms/inter.git
synced 2024-11-23 11:43:47 +03:00
fontbuild: Fixes a bug that would cause certain instance styles to be incorrectly flagged as "italic". This was an effect from negating the slant angle.
This commit is contained in:
parent
4f82047434
commit
0977151206
@ -259,9 +259,8 @@ def setFontInfo(font, weight):
|
||||
style = font.info.styleName # e.g. "Medium Italic"
|
||||
|
||||
# Update italicAngle
|
||||
isitalic = False
|
||||
if font.info.italicAngle != 0:
|
||||
isitalic = True
|
||||
isitalic = style.find("Italic") != -1
|
||||
if isitalic:
|
||||
font.info.italicAngle = float('%.8g' % font.info.italicAngle)
|
||||
else:
|
||||
font.info.italicAngle = 0 # avoid "-0.0" value in UFO
|
||||
|
Loading…
Reference in New Issue
Block a user