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

Fix text spacing with vertical fonts (#6387)

According to the PDF spec 5.3.2, a positive value means in horizontal,
that the next glyph is further to the left (so narrower), and in
vertical that it is further down (so wider).
This change fixes the way PDF.js has interpreted the value.
This commit is contained in:
Fabian Lange 2015-08-28 13:42:01 +02:00
parent e68a5c0222
commit 2564827503
5 changed files with 39 additions and 13 deletions

View file

@ -100,6 +100,7 @@
!issue5747.pdf
!issue6099.pdf
!issue6336.pdf
!issue6387.pdf
!issue6410.pdf
!gradientfill.pdf
!bug903856.pdf

BIN
test/pdfs/issue6387.pdf Normal file

Binary file not shown.

View file

@ -1574,6 +1574,19 @@
"lastPage": 1,
"type": "eq"
},
{ "id": "issue6387-canvas",
"file": "pdfs/issue6387.pdf",
"md5": "08c39ac6d0aab1596e6e59793eaf3ee4",
"rounds": 1,
"type": "eq"
},
{ "id": "issue6387-text",
"file": "pdfs/issue6387.pdf",
"md5": "08c39ac6d0aab1596e6e59793eaf3ee4",
"rounds": 1,
"type": "text",
"about": "Note that the text layer seems to be off to the right."
},
{ "id": "issue4890",
"file": "pdfs/issue4890.pdf",
"md5": "1666feb4cd26318c2bdbea6a175dce87",