Merge pull request #11540 from tamuratak/charspacing

Fix text spacing with vertical fonts. #7687 and #11526.
This commit is contained in:
Tim van der Meij 2020-02-26 22:26:27 +01:00 committed by GitHub
commit 965ebe63fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 1 deletions

View File

@ -1719,7 +1719,12 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
}
}
var charWidth = width * widthAdvanceScale + spacing * fontDirection;
var charWidth;
if (vertical) {
charWidth = width * widthAdvanceScale - spacing * fontDirection;
} else {
charWidth = width * widthAdvanceScale + spacing * fontDirection;
}
x += charWidth;
if (restoreNeeded) {

View File

@ -0,0 +1 @@
https://web.archive.org/web/20200210200830/https://www.nta.go.jp/taxes/tetsuzuki/shinsei/shinkoku/zoyo/yoshiki2019/pdf/006.pdf

View File

@ -4376,5 +4376,13 @@
"rounds": 1,
"link": false,
"type": "eq"
},
{ "id": "issue11526",
"file": "pdfs/issue11526.pdf",
"md5": "9babc771fc8792f43e4ada46b0daff8c",
"rounds": 1,
"lastPage": 1,
"link": true,
"type": "eq"
}
]