Created attachment 119693 [details] When the default epub font is not Ubuntu 8, links are broken SUMMARY Links in epub documents are at fixed positions, which are only valid with the default font size (Settings -> Configure Backends), which is Ubuntu 8. Even when the font size was changed before the epub was opened, the links are at the wrong position. STEPS TO REPRODUCE 1. Download e. g. https://github.com/paulkoegel/redux-offline-docs/raw/master/redux-documentation-2019-01-04.epub or https://www.freecadweb.org/manual/a-freecad-manual.epub and open in Okular. OBSERVED RESULT Links are where they should be. STEPS TO REPRODUCE 2. Go to Settings -> Configure Backends and change the default epub font size. (E. g. Ubuntu 14) OBSERVED RESULT Links are still at the old position. EXPECTED RESULT Links are where they should be. SOFTWARE/OS VERSIONS: KDE Neon 5.15.4 KDE Frameworks 5.57.0 Qt 5.12.0 Okular 1.7.10, Epub Backend 0.2.3
Created attachment 119694 [details] When the default font size for epub is not changed, links are not broken
It works again if you reload the document right? (i.e. if you press F5)
No, still at wrong positions. But it works with text selection: 1. Change font size 2. Text selection selects text at old position. 3. Reload (F5) or restart Okular 4. Text selection selects text at correct position.
oh, ok, the "fixed by" reloading has already an existing bug about it afair, but if this one doesn't get fixed by reloading then it's not a duplicate :)
It seems that this bug happens every time the font+size configuration in the Epub backend is set to anything deviating from the global default font+size configuration of Plasma desktop. E.g.: Plasma Systemsettings -> Appearance -> Fonts: "Noto Sans 10" -> links in epub files work correctly only for "Noto Sans 10" Plasma Systemsettings -> Appearance -> Fonts: "Bitstream Charter 11" -> links in epub files work correctly only for "Bitstream Charter 11" Tested with Neon user live image (okular-extra-backends needs to be installed).