mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Still testing type1 charstring conversion
This commit is contained in:
parent
04b14f7b8a
commit
8acc31ec83
1 changed files with 5 additions and 4 deletions
9
fonts.js
9
fonts.js
|
@ -1488,8 +1488,9 @@ var Type1Parser = function() {
|
|||
// TODO Clean this code
|
||||
if (escape == 16) {
|
||||
var index = charstring.pop();
|
||||
// var argc = charstring.pop();
|
||||
// var data = charstring.pop();
|
||||
var argc = charstring.pop();
|
||||
for (var j = 0; j < argc; j++)
|
||||
var data = charstring.pop();
|
||||
|
||||
// If the flex mechanishm is not used in a font program, Adobe
|
||||
// state that that entries 0, 1 and 2 can simply be replace by
|
||||
|
@ -1501,8 +1502,8 @@ var Type1Parser = function() {
|
|||
// This is the same things about hint replacement, if it is not used
|
||||
// entry 3 can be replaced by {3}
|
||||
if (index == 3) {
|
||||
// charstring.push(3);
|
||||
// i++;
|
||||
charstring.push(3);
|
||||
i++;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue