Properly build toFontChar

This commit is contained in:
notmasteryet 2012-02-20 14:26:30 -06:00
parent b4e3554af2
commit 26b58c0e4f

View File

@ -2148,7 +2148,8 @@ var Font = (function FontClosure() {
var unicode = toUnicode[i];
var fontCharCode = typeof unicode === 'object' ? unusedUnicode++ :
unicode;
result.push(fontCharCode);
if (typeof unicode !== 'undefined')
result[i] = fontCharCode;
}
return result;
},