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
diff --git a/Lib/fontTools/ttLib/sfnt.py b/Lib/fontTools/ttLib/sfnt.py
index ff88829..93f70b6 100644
--- a/Lib/fontTools/ttLib/sfnt.py
+++ b/Lib/fontTools/ttLib/sfnt.py
@@ -153,7 +153,7 @@
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