From ffc3cfeed12e67b383ed5f540d05cab01b33bb77 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 23 Nov 2013 19:51:36 -0500 Subject: [PATCH] Allow using binary / octal / hex numbers in XML In OpenType Layout tables that is. Most (all) of the other tables already use safeEval() which accepts these kinds of things. --- Lib/fontTools/ttLib/tables/otConverters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/fontTools/ttLib/tables/otConverters.py b/Lib/fontTools/ttLib/tables/otConverters.py index b67317afc..240979b6b 100644 --- a/Lib/fontTools/ttLib/tables/otConverters.py +++ b/Lib/fontTools/ttLib/tables/otConverters.py @@ -76,7 +76,7 @@ class SimpleValue(BaseConverter): class IntValue(SimpleValue): def xmlRead(self, attrs, content, font): - return int(attrs["value"]) + return int(attrs["value"], 0) class Long(IntValue): def read(self, reader, font, countVars):