Bug 401268 - Freehand lines rendered ugly as you write and look good only after you finish
Summary: Freehand lines rendered ugly as you write and look good only after you finish
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.5.3
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-21 10:17 UTC by Christos
Modified: 2024-07-15 13:18 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
ugly handwriting annotations (26.11 KB, video/mp4)
2019-05-15 09:54 UTC, Darek
Details
ugly handwriting annotations (1.20 MB, video/mp4)
2019-05-15 10:05 UTC, Darek
Details
ugly handwriting annotations (1.20 MB, video/mp4)
2019-05-15 10:06 UTC, Darek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christos 2018-11-21 10:17:27 UTC
SUMMARY

Freehand line annotations in okular (created with a drawing tablet - wacom and others) appear rather ugly until you finish writing.

Showing the bug on YouTube (vs xournal): https://youtu.be/ON_BP1YkJTU

STEPS TO REPRODUCE
1. Open a .pdf file with okular
2. Start the freehand line annotation
3. Write something

OBSERVED RESULT

Writing is rendered ok only after you finish writing.

EXPECTED RESULT

It should look good as you write

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon 5.14
(available in About System)
KDE Plasma Version: 5.14.3
KDE Frameworks Version: 5.52.0
Qt Version: 5.11.2
ADDITIONAL INFORMATION

Video: https://youtu.be/ON_BP1YkJTU
Comment 1 Laura David Hurka 2018-11-21 14:39:52 UTC
With my okular, the width is correct while drawing. It's just not antialiased, and it flashes once when the line is finished.

Okular Version: 1.5.2
Operating System: KDE neon 5.13
KDE Plasma Version: 5.14.0
Qt Version: 5.11.1
KDE Frameworks Version: 5.50.0
Comment 2 Oliver Sander 2018-11-22 12:51:34 UTC
The reason for the bug is the following: While you draw, Okular draws the annotation, and it does so badly.  Once you are done, your annotation is redrawn using poppler.  The width difference is probably an HiDPI issue.

Related issues:
https://bugs.kde.org/show_bug.cgi?id=370217
https://bugs.kde.org/show_bug.cgi?id=384143
https://gitlab.freedesktop.org/poppler/poppler/merge_requests/77
Comment 3 Christos 2018-11-22 13:21:46 UTC
@Oliver

So this is a bug that can't be changed easily?

My monitor is 1920x1080 24 inch display. Not really HiDPI is it?
Comment 4 Oliver Sander 2018-11-22 13:26:04 UTC
It's not something that I know how to fix offhand.  Somebody with more time and skills than me may still find it easy -- I don't know.
Comment 5 Darek 2019-05-15 09:54:16 UTC
Created attachment 120077 [details]
ugly handwriting annotations
Comment 6 Darek 2019-05-15 10:05:43 UTC
Created attachment 120078 [details]
ugly handwriting annotations
Comment 7 Darek 2019-05-15 10:06:57 UTC
Created attachment 120079 [details]
ugly handwriting annotations
Comment 8 Darek 2019-05-15 10:08:08 UTC
My problem is similar to the one reported earlier. The annotations handwritten with help of wacom look ugly. The lines written using the touchpad are smooth. The problem does not occur in xurnal.
Comment 9 postix 2020-03-24 19:03:15 UTC
Duplicate of 410723?
Comment 10 Christos 2020-03-25 23:22:57 UTC
(In reply to Postix from comment #9)
> Duplicate of 410723?

It seems to me that 410723 is the duplicate ;p. But yes, I suppose it is the same issue. 

However my reporting never saw any attention, and almost a year later 410723 was created. Maybe my title & explanation was bad?

Well, it's getting some attention now!