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

Add back dir property in spans in text layer

- aims to fix #12909
This commit is contained in:
Calixte Denizet 2021-01-25 22:10:46 +01:00
parent 6249ef517d
commit 539256c351
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) {