mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Fix the vertical writing mode with horizontal scaling. #11555.
It is not valid to multiply textHScale when the writing mode is vertical. See 9.4.4 Text Space Details, https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/PDF32000_2008.pdf#G8.1694762
This commit is contained in:
parent
e6d8899827
commit
d8c9f119b0
4 changed files with 109 additions and 2 deletions
|
@ -1732,7 +1732,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
|||
}
|
||||
}
|
||||
if (vertical) {
|
||||
current.y -= x * textHScale;
|
||||
current.y -= x;
|
||||
} else {
|
||||
current.x += x * textHScale;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue