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:
parent
a221a57ccd
commit
ffc3cfeed1
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user