Merge pull request #13376 from calixteman/6132
Replace command with not enough args by an endchar in CFF font
This commit is contained in:
commit
6255c2a8f3
@ -632,6 +632,14 @@ const CFFParser = (function CFFParserClosure() {
|
|||||||
", expected: " +
|
", expected: " +
|
||||||
validationCommand.min
|
validationCommand.min
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (stackSize === 0) {
|
||||||
|
// Just "fix" the outline in replacing command by a endchar:
|
||||||
|
// it could lead to wrong rendering of some glyphs or not.
|
||||||
|
// For example, the pdf in #6132 is well-rendered.
|
||||||
|
data[j - 1] = 14;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
@ -130,6 +130,7 @@
|
|||||||
!bug1513120_reduced.pdf
|
!bug1513120_reduced.pdf
|
||||||
!bug1538111.pdf
|
!bug1538111.pdf
|
||||||
!bug1552113.pdf
|
!bug1552113.pdf
|
||||||
|
!issue6132.pdf
|
||||||
!issue9949.pdf
|
!issue9949.pdf
|
||||||
!bug1308536.pdf
|
!bug1308536.pdf
|
||||||
!bug1337429.pdf
|
!bug1337429.pdf
|
||||||
|
BIN
test/pdfs/issue6132.pdf
Normal file
BIN
test/pdfs/issue6132.pdf
Normal file
Binary file not shown.
@ -2642,6 +2642,12 @@
|
|||||||
"rounds": 1,
|
"rounds": 1,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
},
|
},
|
||||||
|
{ "id": "issue6132",
|
||||||
|
"file": "pdfs/issue6132.pdf",
|
||||||
|
"md5": "bd1e6252ca642acf2cd05db1748a073c",
|
||||||
|
"rounds": 1,
|
||||||
|
"type": "eq"
|
||||||
|
},
|
||||||
{ "id": "issue4875",
|
{ "id": "issue4875",
|
||||||
"file": "pdfs/issue4875.pdf",
|
"file": "pdfs/issue4875.pdf",
|
||||||
"md5": "9a558e18029a42c0ef4e9a8755e24733",
|
"md5": "9a558e18029a42c0ef4e9a8755e24733",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user