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:
commit
286271152f
3 changed files with 12 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue