Skip to content

Commit

Permalink
Consider textRise when showing type3 font glyphs
Browse files Browse the repository at this point in the history
Add test case for issue 19532
  • Loading branch information
Xiphoseer committed Feb 21, 2025
1 parent e3ea926 commit 24aa39e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/display/canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -2362,7 +2362,7 @@ class CanvasGraphics {

ctx.save();
ctx.transform(...current.textMatrix);
ctx.translate(current.x, current.y);
ctx.translate(current.x, current.y + current.textRise);

ctx.scale(textHScale, fontDirection);

Expand Down
1 change: 1 addition & 0 deletions test/pdfs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
!issue10542_reduced.pdf
!issue10665_reduced.pdf
!issue11016_reduced.pdf
!issue19532.pdf
!issue15516_reduced.pdf
!issue11045.pdf
!bug1057544.pdf
Expand Down
Binary file added test/pdfs/issue19532.pdf
Binary file not shown.
7 changes: 7 additions & 0 deletions test/test_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5800,6 +5800,13 @@
"rounds": 1,
"type": "eq"
},
{
"id": "issue19532",
"file": "pdfs/issue19532.pdf",
"md5": "87bf39acbb306479fa8994f441a5cb1e",
"rounds": 1,
"type": "eq"
},
{
"id": "issue5540",
"file": "pdfs/issue5540.pdf",
Expand Down

0 comments on commit 24aa39e

Please sign in to comment.