Browse Source

Update src/fonts.js

One simple thing that came up while looking at the new Octane benchmark.
Tom Schuster 13 years ago committed by Yury Delendik
parent
commit
fad38f8286
  1. 2
      src/fonts.js

2
src/fonts.js

@ -4100,7 +4100,7 @@ Type1Font.prototype = { @@ -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…
Cancel
Save