Merge pull request #10573 from Snuffleupagus/type3-avoid-truncation

Avoid truncating/breaking some Type3 glyphs in `compileType3Glyph` (bug 1245391, issue 10568)
This commit is contained in:
Tim van der Meij 2019-02-28 23:25:45 +01:00 committed by GitHub
commit af5597b7e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 25528 additions and 1 deletions

View File

@ -325,7 +325,10 @@ function compileType3Glyph(imgData) {
coords.push(p % width1);
coords.push((p / width1) | 0);
--count;
if (!points[p]) {
--count;
}
} while (p0 !== p);
outlines.push(coords);
--i;

View File

@ -91,6 +91,7 @@
!bug1200096.pdf
!bug1068432.pdf
!bug1146106.pdf
!bug1245391_reduced.pdf
!bug1252420.pdf
!issue9949.pdf
!bug1308536.pdf

File diff suppressed because it is too large Load Diff

View File

@ -1009,6 +1009,13 @@
"link": false,
"type": "eq"
},
{ "id": "bug1245391",
"file": "pdfs/bug1245391_reduced.pdf",
"md5": "6c946045ee0f2f663f269717c0f1614a",
"rounds": 1,
"link": false,
"type": "eq"
},
{ "id": "bug1250079",
"file": "pdfs/bug1250079.pdf",
"md5": "a1dd21a70ae7097d96273e85a80b26ef",