style constency
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@168 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
parent
6146b084c2
commit
c3403cfbd4
@ -66,9 +66,7 @@ class table__h_e_a_d(DefaultTable.DefaultTable):
|
|||||||
value=int(value)
|
value=int(value)
|
||||||
if name in ("magicNumber", "checkSumAdjustment"):
|
if name in ("magicNumber", "checkSumAdjustment"):
|
||||||
value = hex(value)
|
value = hex(value)
|
||||||
elif name == "macStyle":
|
elif name in ("macStyle", "flags"):
|
||||||
value = num2binary(value, 16)
|
|
||||||
elif name == "flags":
|
|
||||||
value = num2binary(value, 16)
|
value = num2binary(value, 16)
|
||||||
writer.simpletag(name, value=value)
|
writer.simpletag(name, value=value)
|
||||||
writer.newline()
|
writer.newline()
|
||||||
@ -77,9 +75,7 @@ class table__h_e_a_d(DefaultTable.DefaultTable):
|
|||||||
value = attrs["value"]
|
value = attrs["value"]
|
||||||
if name in ("created", "modified"):
|
if name in ("created", "modified"):
|
||||||
value = parse_date(value) - mac_epoch_diff
|
value = parse_date(value) - mac_epoch_diff
|
||||||
elif name == "macStyle":
|
elif name in ("macStyle", "flags"):
|
||||||
value = binary2num(value)
|
|
||||||
elif name == "flags":
|
|
||||||
value = binary2num(value)
|
value = binary2num(value)
|
||||||
else:
|
else:
|
||||||
value = safeEval(value)
|
value = safeEval(value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user