fix to float detection in postprocess_instance_ufo.py
This commit is contained in:
parent
8c2631206b
commit
1412d3efc1
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ def ufo_set_wws(ufo):
|
||||||
def fix_fractional_advance_width(ufo):
|
def fix_fractional_advance_width(ufo):
|
||||||
for g in ufo:
|
for g in ufo:
|
||||||
w = int(round(g.width))
|
w = int(round(g.width))
|
||||||
if w != g.width:
|
if str(g.width) != str(w):
|
||||||
# set twice to work around bug or weird behavior in defcon.
|
# set twice to work around bug or weird behavior in defcon.
|
||||||
# If we don't do this, then fractional widths with .0 fraction are
|
# If we don't do this, then fractional widths with .0 fraction are
|
||||||
# not updated to integer values.
|
# not updated to integer values.
|
||||||
|
|
|
||||||
Reference in a new issue