Merge pull request #2010 from yurydelendik/pull-1997
[cherry-pick #1997] Update src/fonts.js
This commit is contained in:
commit
7e21d31b64
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user