Merge pull request #247 from notmasteryet/tt-head-issue
Clearing font checksum adjustment field
This commit is contained in:
commit
f936c30e08
3
fonts.js
3
fonts.js
@ -705,6 +705,9 @@ var Font = (function() {
|
|||||||
var data = file.getBytes(length);
|
var data = file.getBytes(length);
|
||||||
file.pos = previousPosition;
|
file.pos = previousPosition;
|
||||||
|
|
||||||
|
if (tag == 'head')
|
||||||
|
data[8] = data[9] = data[10] = data[11] = 0; // clearing checksum adjustment
|
||||||
|
|
||||||
return {
|
return {
|
||||||
tag: tag,
|
tag: tag,
|
||||||
checksum: checksum,
|
checksum: checksum,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user