Merge pull request #247 from notmasteryet/tt-head-issue

Clearing font checksum adjustment field
This commit is contained in:
Andreas Gal 2011-07-10 14:52:16 -07:00
commit f936c30e08

View File

@ -705,6 +705,9 @@ var Font = (function() {
var data = file.getBytes(length);
file.pos = previousPosition;
if (tag == 'head')
data[8] = data[9] = data[10] = data[11] = 0; // clearing checksum adjustment
return {
tag: tag,
checksum: checksum,