From 26b58c0e4f18f3222881ae7c3c17565441308a37 Mon Sep 17 00:00:00 2001 From: notmasteryet Date: Mon, 20 Feb 2012 14:26:30 -0600 Subject: [PATCH] Properly build toFontChar --- src/fonts.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fonts.js b/src/fonts.js index e67286d81..01e7a7c9f 100644 --- a/src/fonts.js +++ b/src/fonts.js @@ -2147,8 +2147,9 @@ var Font = (function FontClosure() { for (var i = 0, ii = toUnicode.length; i < ii; i++) { var unicode = toUnicode[i]; var fontCharCode = typeof unicode === 'object' ? unusedUnicode++ : - unicode; - result.push(fontCharCode); + unicode; + if (typeof unicode !== 'undefined') + result[i] = fontCharCode; } return result; },