Use the right width field in hmtx

This commit is contained in:
Vivien Nicolas 2011-06-27 21:17:25 +02:00
parent bcf5ade41c
commit 798d7a10ca

View File

@ -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);