Merge pull request #12910 from calixteman/bidi

Add back dir property in spans in text layer
This commit is contained in:
Tim van der Meij 2021-01-27 22:09:00 +01:00 committed by GitHub
commit 286271152f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View File

@ -113,6 +113,9 @@ const renderTextLayer = (function renderTextLayerClosure() {
textDiv.style.fontFamily = style.fontFamily; textDiv.style.fontFamily = style.fontFamily;
textDiv.textContent = geom.str; textDiv.textContent = geom.str;
// geom.dir may be 'ttb' for vertical texts.
textDiv.dir = geom.dir;
// `fontName` is only used by the FontInspector, and we only use `dataset` // `fontName` is only used by the FontInspector, and we only use `dataset`
// here to make the font name available in the debugger. // here to make the font name available in the debugger.
if (task._fontInspectorEnabled) { if (task._fontInspectorEnabled) {

View File

@ -0,0 +1 @@
https://web.archive.org/web/20210126084513/https://www.machonso.org/uploads/images/%D7%95%D7%95%D7%9C%D7%A3.pdf

View File

@ -4526,6 +4526,14 @@
"link": false, "link": false,
"type": "eq" "type": "eq"
}, },
{ "id": "issue12909",
"file": "pdfs/issue12909.pdf",
"md5": "0faa1cb029c3323c168595cccbe46ec0",
"link": true,
"rounds": 1,
"lastPage": 1,
"type": "text"
},
{ "id": "issue5592", { "id": "issue5592",
"file": "pdfs/issue5592.pdf", "file": "pdfs/issue5592.pdf",
"md5": "a0750f95afa80c880f7966df7062616c", "md5": "a0750f95afa80c880f7966df7062616c",