Bug 480983 - The text selection tool in Okular version 23.08.4 on Windows platform exhibits font stretching and minor positional variation before and after text selection, impacting accuracy and visual consistency.
Summary: The text selection tool in Okular version 23.08.4 on Windows platform exhibit...
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 23.08.4
Platform: Other Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-07 03:16 UTC by zhy190347
Modified: 2024-04-13 20:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zhy190347 2024-02-07 03:16:56 UTC
SUMMARY
The text selection tool in Okular version 23.08.4 on Windows platform exhibits font stretching and minor positional variation before and after text selection, impacting accuracy and visual consistency.

STEPS TO REPRODUCE
1. Open Okular version 23.08.4 on Windows platform.
2. Open a text file (e.g., PDF, MOBI).
3. Use the "Select Text" tool to choose some text within the document.

OBSERVED RESULT
After selecting text using the "Select Text" tool, the font appears slightly stretched, and there is a minor positional variation between the text before and after selection.

EXPECTED RESULT
The font should remain consistent in appearance, and there should be no noticeable positional change in the text before and after selection.

SOFTWARE/OS VERSIONS
Windows: Windows 11 Version 2009
KDE Frameworks Version: 5.114.0
Qt Version: 5.15.12

ADDITIONAL INFORMATION
- The problem occurs consistently across different text file formats (e.g., PDF, MOBI).
Comment 1 Albert Astals Cid 2024-02-07 20:51:15 UTC
can you attach videos or screenhots showing the problem?
Comment 2 zhy190347 2024-02-08 14:22:47 UTC
I have already recorded a video. By the way, it seems that this bug only occurs when the sidebar is open.
https://mega.nz/file/tj9jjKpb#dMBiI7IndHAXpN_DKv6eu_05zMsrh-zw5fDXnI8eMYE
Comment 3 Albert Astals Cid 2024-02-10 10:04:47 UTC
Can you share that document?
Comment 4 zhy190347 2024-02-10 12:32:40 UTC
(In reply to Albert Astals Cid from comment #3)
> Can you share that document?

https://mega.nz/file/Yz0xRCIA#trO4EiNWPTUSsbcQ5wGlK6D2nPnvAaAi_dOLB96TmM8
Comment 5 Albert Astals Cid 2024-02-12 23:26:19 UTC
Interesting can not reproduce.

Is your desktop scale at 100% or different?

Also i'm a bit concerned you're using 23.08.4 which is not released on the Microsoft Store, where did you get that from? Can you try the officially released binary instead of that one?
Comment 6 zhy190347 2024-02-16 10:57:24 UTC
(In reply to Albert Astals Cid from comment #5)
> Interesting can not reproduce.
> 
> Is your desktop scale at 100% or different?
> 
> Also i'm a bit concerned you're using 23.08.4 which is not released on the
> Microsoft Store, where did you get that from? Can you try the officially
> released binary instead of that one?

I found that this bug only occurs when the desktop scale is not set to 100% (mine is 125%). 
I downloaded it from the daily builds on Jenkins:https://binary-factory.kde.org/job/Okular_Release_win64/
Also, the version from the Microsoft Store has this bug too.
Comment 7 Albert Astals Cid 2024-02-18 16:35:24 UTC
As a rule, don't download builds from the binary factory, they haven't passed any kind of testing.

Good, that you have confirmed it only happens at 125% zoom, now someone that wants to spend time on Windows debugging that needs to confirm and hopefully fix.
Comment 8 Tobias Schula 2024-03-13 16:42:45 UTC
(In reply to Albert Astals Cid from comment #7)
> Good, that you have confirmed it only happens at 125% zoom, now someone that
> wants to spend time on Windows debugging that needs to confirm and hopefully
> fix.

This should be fixed with Qt6, as Qt5 has all kinds of weird scaling issues on the windows platform, if using fractional scaling. The integrated pdf-reader of TeXStudio (also based on poppler?) has similar problems in the Qt5 version.
Comment 9 Tobias Schula 2024-04-13 20:59:30 UTC
(In reply to Tobias Schula from comment #8)
> This should be fixed with Qt6, as Qt5 has all kinds of weird scaling issues
> on the windows platform, if using fractional scaling. The integrated
> pdf-reader of TeXStudio (also based on poppler?) has similar problems in the
> Qt5 version.

I tested it with current master on Windows. Qt6 brought some improvements, using the PDF OP provided, at the same zoom as in his video (690.8%), the font stretching and jumping is less, but still noticeable.