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.
This commit is contained in:
Behdad Esfahbod 2013-11-23 19:51:36 -05:00
parent a221a57ccd
commit ffc3cfeed1

View File

@ -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):