Skip to content

Commit 7e21d31

Browse files
committed
Merge pull request mozilla#2010 from yurydelendik/pull-1997
[cherry-pick mozilla#1997] Update src/fonts.js
2 parents da861be + fad38f8 commit 7e21d31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fonts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4100,7 +4100,7 @@ Type1Font.prototype = {
41004100
// charstring changes size - can't cache .length in loop
41014101
for (var i = 0; i < charstring.length; i++) {
41024102
var command = charstring[i];
4103-
if (command.charAt) {
4103+
if (typeof command === 'string') {
41044104
var cmd = map[command];
41054105
assert(cmd, 'Unknow command: ' + command);
41064106

0 commit comments

Comments
 (0)