mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 01:28:06 +02:00
Use the right width field in hmtx
This commit is contained in:
parent
bcf5ade41c
commit
798d7a10ca
1 changed files with 1 additions and 1 deletions
2
fonts.js
2
fonts.js
|
@ -733,7 +733,7 @@ var Font = (function () {
|
|||
hmtx = "\x01\xF4\x00\x00"; // Fake .notdef
|
||||
var width = 0, lsb = 0;
|
||||
for (var i = 0; i < charstrings.length; i++) {
|
||||
width = charstrings[i].charstring[1];
|
||||
width = charstrings[i].charstring[0];
|
||||
hmtx += string16(width) + string16(lsb);
|
||||
}
|
||||
hmtx = stringToArray(hmtx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue