[okular] [Bug 470091] New: Text selection rectangle too large with fonts that have 2000 unitsPerEm

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Sun May 21 16:51:09 BST 2023


https://bugs.kde.org/show_bug.cgi?id=470091

            Bug ID: 470091
           Summary: Text selection rectangle too large with fonts that
                    have 2000 unitsPerEm
    Classification: Applications
           Product: okular
           Version: 23.04.1
          Platform: openSUSE
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: PDF backend
          Assignee: okular-devel at kde.org
          Reporter: hiwatari.seiji at gmail.com
  Target Milestone: ---

Created attachment 159166
  --> https://bugs.kde.org/attachment.cgi?id=159166&action=edit
Buggy PDF showing the explained behavior

STEPS TO REPRODUCE
1. Open the PDF I attached and select some text

OBSERVED RESULT
The selection rectangle that's drawn over/above the selected text passage is
about twice the height of the text.
If there are multiple lines just above each other, the selection breaks because
rectangles between lines intersect.

EXPECTED RESULT
The selection rectangle should be just large enough to contain what was
collected.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9

ADDITIONAL INFORMATION
The pdf was created using the "printpdf" Rust library. There exists a bug
showing the same behavior with Evince (which is also using poppler). The
library author did an analysis of what might be going wrong:
https://github.com/fschutt/printpdf/issues/108

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list