mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Clearing font checksum adjustment field
This commit is contained in:
parent
1328a25ddd
commit
9b69997046
1 changed files with 3 additions and 0 deletions
3
fonts.js
3
fonts.js
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue