1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

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;