[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [kate] [Bug 391518] Cursor width in Kate gets narrower every 16 characters
From:       Christoph Feck <bugzilla_noreply () kde ! org>
Date:       2018-03-29 22:45:57
Message-ID: bug-391518-17878-U7IvwjNRR6 () http ! bugs ! kde ! org/
[Download RAW message or body]

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

Christoph Feck <cfeck@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |CONFIRMED
     Ever confirmed|0                           |1

--- Comment #1 from Christoph Feck <cfeck@kde.org> ---
The issue is that QTextLayout uses QPainter::RasterOp_NotDestination, which
means all pixels that are affected by the cursor rect get inverted. Since the
cursor rect is positioned at fractional positions, usually 3 instead of 2
pixels get inverted.

I suggest to use setRenderHint(QPainter::Antialiasing, false) for the cursor.
This way, the rect rasterization will be pixel-aligned and only the intended 2
pixels get inverted.

-- 
You are receiving this mail because:
You are watching all bug changes.=
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic