1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-24 09:08:07 +02:00

Correctly render the glyph outline when it has a stroke pattern

It fixes #19360.

Each glyph in the test case has a fill and a stroke pattern, so the current transform used
to scale the glyph outline must be the same.
In setting the stroke color to green, I noticed that the last outline contains some non-closed
subpaths, so when generating the glyph outline, every time we 'moveTo', we close the previous
subpath.
This commit is contained in:
Calixte Denizet 2025-01-21 10:25:58 +01:00
parent 23dc3ff49f
commit 1ccf6ed976
5 changed files with 37 additions and 2 deletions

View file

@ -696,3 +696,4 @@
!issue18911.pdf
!issue19207.pdf
!issue19239.pdf
!issue19360.pdf

BIN
test/pdfs/issue19360.pdf Executable file

Binary file not shown.

View file

@ -11286,5 +11286,12 @@
"firstPage": 2,
"lastPage": 2,
"type": "eq"
},
{
"id": "issue19360",
"file": "pdfs/issue19360.pdf",
"md5": "b2de376f7e96fa2b6afc00dac016c40a",
"rounds": 1,
"type": "eq"
}
]