Clearing font checksum adjustment field
This commit is contained in:
parent
1328a25ddd
commit
9b69997046
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