From: Vivien Nicolas <21@vingtetun.org> Date: Mon, 27 Jun 2011 19:17:25 +0000 (+0200) Subject: Use the right width field in hmtx X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=798d7a10cae0995413662f3308d724e52557f71c;p=pdf.js.git Use the right width field in hmtx --- diff --git a/fonts.js b/fonts.js index f922c79..a3645cd 100644 --- a/fonts.js +++ b/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);