Don't read the lsb instead of the width

This commit is contained in:
Vivien Nicolas 2011-06-24 03:01:41 +02:00
parent 5443714d34
commit bc7e2b0110

View File

@ -718,7 +718,7 @@ var Font = (function () {
hmtx = "\x01\xF4\x00\x00"; // Fake .notdef hmtx = "\x01\xF4\x00\x00"; // Fake .notdef
var width = 0, lsb = 0; var width = 0, lsb = 0;
for (var i = 0; i < charstrings.length; i++) { for (var i = 0; i < charstrings.length; i++) {
width = charstrings[i].charstring[0]; width = charstrings[i].charstring[1];
hmtx += string16(width) + string16(lsb); hmtx += string16(width) + string16(lsb);
} }
hmtx = stringToArray(hmtx); hmtx = stringToArray(hmtx);