From 1412d3efc18ff3a174637744404f7e3fcf60773a Mon Sep 17 00:00:00 2001 From: Rasmus Andersson Date: Sat, 15 Oct 2022 17:10:13 -0700 Subject: [PATCH] fix to float detection in postprocess_instance_ufo.py --- misc/tools/postprocess_instance_ufo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/tools/postprocess_instance_ufo.py b/misc/tools/postprocess_instance_ufo.py index dcd9c397f..8b5b60970 100644 --- a/misc/tools/postprocess_instance_ufo.py +++ b/misc/tools/postprocess_instance_ufo.py @@ -20,7 +20,7 @@ def ufo_set_wws(ufo): def fix_fractional_advance_width(ufo): for g in ufo: 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. # If we don't do this, then fractional widths with .0 fraction are # not updated to integer values.