Fix lenIV misreading and warn instead of stop for unimplemented Type1 commands
This commit is contained in:
parent
d72178d6dd
commit
12ef21cbbe
1 changed files with 3 additions and 2 deletions
5
fonts.js
5
fonts.js
|
@ -1597,7 +1597,7 @@ var Type1Parser = function() {
|
||||||
} else if (!command) {
|
} else if (!command) {
|
||||||
break;
|
break;
|
||||||
} else if (command == -1) {
|
} else if (command == -1) {
|
||||||
error('Support for Type1 command ' + value +
|
warn('Support for Type1 command ' + value +
|
||||||
' (' + escape + ') is not implemented in charstring: ' +
|
' (' + escape + ') is not implemented in charstring: ' +
|
||||||
charstring);
|
charstring);
|
||||||
}
|
}
|
||||||
|
@ -1641,7 +1641,8 @@ var Type1Parser = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
function readNumber(str, index) {
|
function readNumber(str, index) {
|
||||||
while (str[index++] == ' ');
|
while (str[index] == ' ')
|
||||||
|
index++;
|
||||||
|
|
||||||
var start = index;
|
var start = index;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue