From cbfbd93e7a20b3a0627d6430de76efed5c0f363e Mon Sep 17 00:00:00 2001 From: notmasteryet Date: Wed, 28 Sep 2011 21:45:22 -0500 Subject: [PATCH] small fixes: index and formatting --- fonts.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fonts.js b/fonts.js index 3b4bfbd62..da966c186 100644 --- a/fonts.js +++ b/fonts.js @@ -429,7 +429,7 @@ var Font = (function Font() { return; } - // Trying to fix encoding using glyph widths and CIDSystemInfo + // Trying to fix encoding using glyph widths and CIDSystemInfo. this.fixWidths(properties); if (!file) { @@ -1429,9 +1429,9 @@ var Font = (function Font() { var unicode = cidToUnicode[i]; if (isArray(unicode)) { if (glyph in glyphsWidths) { - var length = unicode.length; + var length = unicode.length; for (j = 0; j < length; j++) { - k = unicode[i]; + k = unicode[j]; encoding[k] = { unicode: k <= 0x1f || (k >= 127 && k <= 255) ? k + kCmapGlyphOffset : k,