~ubuntu-branches/ubuntu/maverick/fonttools/maverick

« back to all changes in this revision

Viewing changes to Lib/fontTools/ttx.py

  • Committer: Bazaar Package Importer
  • Author(s): Paul Wise
  • Date: 2006-06-16 19:26:14 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060616192614-jk9f8nl1u9ks6uls
* New upstream bugfix snapshot
* Migrate patches from the diff.gz to quilt
* Remove changelog.CVS, instead update upstream's changelog file
* Fix the watch file, in case upstream ever releases
* Make homepage in the description comply with devref 6.2.4
* Tidy the copyright file and fix the copyright years
* Don't byte-compile .py files at build time
* Ensure CFLAGS is passed to setup.py
* Clean unused parts of debian/rules
* 10_fix_summertime_traceback: return a constant from calc_mac_epoch_diff
  Finally closes: #328098
* Update for the new Python policy
* Bump Standards-Version (no changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
        print format % ("----", "----------", "-------", "-------")
146
146
        for tag in tags:
147
147
                entry = reader.tables[tag]
148
 
                checksum = "0x" + string.zfill(hex(entry.checkSum)[2:], 8)
 
148
                checkSum = long(entry.checkSum)
 
149
                if checkSum < 0:
 
150
                        checkSum = checkSum + 0x100000000L
 
151
                checksum = "0x" + string.zfill(hex(checkSum)[2:-1], 8)
149
152
                print format % (tag, checksum, entry.length, entry.offset)
150
153
        print
151
154
        ttf.close()