From: Vivien Nicolas <21@vingtetun.org> Date: Fri, 24 Jun 2011 01:01:41 +0000 (+0200) Subject: Don't read the lsb instead of the width X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=bc7e2b0110273454abae614b335c9ac94e73739f;p=pdf.js.git Don't read the lsb instead of the width --- diff --git a/fonts.js b/fonts.js index 6f5adbe..a995c55 100644 --- a/fonts.js +++ b/fonts.js @@ -718,7 +718,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[0]; + width = charstrings[i].charstring[1]; hmtx += string16(width) + string16(lsb); } hmtx = stringToArray(hmtx);