Wow, the master checksum in the 'head' table was never written to file correctly on little-endian platforms :-(. Fixed.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@282 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
parent
542b9510e6
commit
5862963726
@ -153,7 +153,7 @@ class SFNTWriter:
|
||||
checksumadjustment = Numeric.array(0xb1b0afba) - checksum
|
||||
# write the checksum to the file
|
||||
self.file.seek(self.tables['head'].offset + 8)
|
||||
self.file.write(struct.pack("l", checksumadjustment))
|
||||
self.file.write(struct.pack(">l", checksumadjustment))
|
||||
|
||||
|
||||
# -- sfnt directory helpers and cruft
|
||||
|
Loading…
x
Reference in New Issue
Block a user