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

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.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`
// here to make the font name available in the debugger.
if (task._fontInspectorEnabled) {