Bug 402751 - Underscores disappear in Kate part
Summary: Underscores disappear in Kate part
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: part (other bugs)
Version First Reported In: 18.04.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-01 11:32 UTC by Victor Porton
Modified: 2019-06-08 15:29 UTC (History)
1 user (show)

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


Attachments
screenshot with an underscore disappeared (220.25 KB, image/png)
2019-01-01 11:32 UTC, Victor Porton
Details
"Parser_Type_Without_Finalize" damaged (235.94 KB, image/png)
2019-01-06 16:41 UTC, Victor Porton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Porton 2019-01-01 11:32:07 UTC
Created attachment 117223 [details]
screenshot with an underscore disappeared

Sometimes some parts of symbols disappear. For example, an underscore may disappear completely.

In the attached screenshot the underscore in

type Term_Record is private;

disappear, so that it reads "Term Record" instead of "Term_Record".

The attached screenshot is a mild case of the bug. Sometimes all underscores on the screen disappear.

Related bug of another program: https://bugs.kde.org/show_bug.cgi?id=371079
Comment 1 Victor Porton 2019-01-06 16:41:54 UTC
Created attachment 117309 [details]
"Parser_Type_Without_Finalize" damaged

Another screenshot where the bug looks even more noticeable.

Some strings such as "Parser_Type_Without_Finalize" are damaged (underscores and other bottom parts of characters are not visible).
Comment 2 Dominik Haumann 2019-01-06 20:48:10 UTC
Which version of Qt do you use?
Comment 3 Victor Porton 2019-01-06 20:53:36 UTC
$ ldd /usr/bin/kate
...
	libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f4ecccc2000)
...

$ dpkg -s libqt5core5a
...
Version: 5.11.1+dfsg-7ubuntu1
...
Comment 4 Christoph Cullmann 2019-06-08 15:29:25 UTC
This should be fixed with

Author: Christoph Cullmann <cullmann@kde.org>  2019-02-25 17:56:18
Committer: Christoph Cullmann <cullmann@kde.org>  2019-02-25 17:56:51
Parent: 8fb410574b142207d88353ed712a5bd08440d08f (Use QTextFormat::TextUnderlineStyle instead of QTextFormat::FontUnderline)
Child:  bd8cd7511ab735971153b2380c3ecd0f4c3d6f42 (Remove deprecated method)
Branches: arcpatch-D19367, arcpatch-D20565, arcpatch-D20565_1, arcpatch-D20606, arcpatch-D20697, arcpatch-D20697_1, arcpatch-D20697_2, arcpatch-D20697_3, arcpatch-D20815, master, remotes/origin/master
Follows: v4.100.0-rc1
Precedes: v5.56.0, v5.56.0-rc1, v5.57.0, v5.57.0-rc1, v5.58.0, v5.58.0-rc1, v5.59.0, v5.59.0-rc1

    try to improve painting height for text lines - bug 403868 avoid to cut _ and other parts still broken: double height things like mixed english/arab, see bug 404713
    
    Summary: using a better height and removing the overpainting stuff
    
    Test Plan: I did try a bit to zoom and use different documents, it looks ok, but it did look ok before in most cases, too :/
    
    Reviewers: dhaumann
    
    Reviewed By: dhaumann
    
    Subscribers: loh.tar, thomassc, kwrite-devel, kde-frameworks-devel
    
    Tags: #kate, #frameworks
    
    Differential Revision: https://phabricator.kde.org/D19283