Merge pull request #2010 from yurydelendik/pull-1997

[cherry-pick #1997] Update src/fonts.js
This commit is contained in:
Yury Delendik 2012-08-22 05:46:06 -07:00
commit 7e21d31b64

View File

@ -4100,7 +4100,7 @@ Type1Font.prototype = {
// charstring changes size - can't cache .length in loop
for (var i = 0; i < charstring.length; i++) {
var command = charstring[i];
if (command.charAt) {
if (typeof command === 'string') {
var cmd = map[command];
assert(cmd, 'Unknow command: ' + command);