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:
commit
af5597b7e5
@ -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;
|
||||
|
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
@ -91,6 +91,7 @@
|
||||
!bug1200096.pdf
|
||||
!bug1068432.pdf
|
||||
!bug1146106.pdf
|
||||
!bug1245391_reduced.pdf
|
||||
!bug1252420.pdf
|
||||
!issue9949.pdf
|
||||
!bug1308536.pdf
|
||||
|
25516
test/pdfs/bug1245391_reduced.pdf
Normal file
25516
test/pdfs/bug1245391_reduced.pdf
Normal file
File diff suppressed because it is too large
Load Diff
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user