Bug 390665 - underscore character not visible with "Bitstream Vera Sans Mono roman" and "dejavu mono" fonts
Summary: underscore character not visible with "Bitstream Vera Sans Mono roman" and "d...
Status: RESOLVED DUPLICATE of bug 404907
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: 18.04.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 405969 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-02-18 06:25 UTC by Potomac
Modified: 2020-03-22 19:23 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
bottom of character not visible (5.87 KB, image/png)
2018-02-18 17:16 UTC, Potomac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Potomac 2018-02-18 06:25:46 UTC
Hello,

I use archlinux 64 bits,

with Kate I notice that if I type an underscore character then I can't see it until I insert a line break,

this problem occurs when the font "Bitstream Vera Sans Mono Roman" is used,

with others fonts I don't have this problem,

version of kate : 17.12.2-1
Comment 1 Potomac 2018-02-18 06:30:09 UTC
the bug occurs also with "deja vu mono" font
Comment 2 Potomac 2018-02-18 17:16:32 UTC
Created attachment 110786 [details]
bottom of character not visible

I made some tests,

the first test :

- I use the "hack" font and font size lesser than 12, the bottom of the characters are not visible

the second test :

- I still use the "hack font" and font size "12", but I have inserted a line break : the bottom of the characters are now visible,


see the screenshot in attachment
Comment 3 Potomac 2018-02-18 17:17:36 UTC
(In reply to Potomac from comment #2)

> 
> - I still use the "hack font" and font size "12", but I have inserted a line
> break : the bottom of the characters are now visible,
> 
> 
> see the screenshot in attachment

correction : the font size is still lesser than "12",

the bug doesn't occur when font size is "12" and greater
Comment 4 wvk 2018-06-04 09:21:21 UTC
Exactly the same problem here, using Debian Sid kate 18.04.0. Font is DejaVu Sans Mono Book.
Comment 5 slave 2018-08-14 21:48:36 UTC
Same behaviour occurs under Fedora 28 with KDevelop, specific to mono fonts under 12 points. 

KDevelop 5.2.3
KDE Frameworks 5.48.0
Qt 5.10.1 (built against 5.10.1)
The xcb windowing system
Comment 6 Christoph Cullmann 2018-08-15 06:29:19 UTC
That stuff is cut out, only happens at the last line, or?
If you have a line below, the cut out parts appear again, like in the screenshot?
Comment 7 Christoph Cullmann 2018-08-15 09:25:17 UTC
Git commit 45180eacbf53b568e422d815f5b31bf263597f29 by Christoph Cullmann.
Committed on 15/08/2018 at 09:25.
Pushed by cullmann into branch 'master'.

fix overpainting for _ or letters like j in the last line
that was already fixed for all other lines, but I missed the last line
special case
thanks to Domonik for reminding me what I did at all:

1) setting clip rect to current line
2) paint that one
3) paint the line above to get the overpainted parts

M  +14   -1    src/view/kateviewinternal.cpp

https://commits.kde.org/ktexteditor/45180eacbf53b568e422d815f5b31bf263597f29
Comment 8 Christoph Cullmann 2018-08-15 21:59:41 UTC
*** Bug 393616 has been marked as a duplicate of this bug. ***
Comment 9 Matt Postiff 2018-12-12 01:34:56 UTC
I'm using KDevelop. Help | About KDevelop | Libraries reports KDE Frameworks 5.51.0, Qt 5.9.7 and the xcb windowing system. Font = Monospace Normal 9.

On KDevelop 5.3.0 for Linux, running on VMWare 14.1.5, if I have a line of code like void book_gone(void) and scroll it so it is not visible, then scroll so it is visible, the underscore and bottom of the letter 'g' are invisible. If I mouse over that line or arrow the cursor somewhere near that line, then the underscore and bottom of the 'g' become visible.
Comment 10 Lothar 2019-03-29 05:11:20 UTC
*** Bug 405969 has been marked as a duplicate of this bug. ***
Comment 11 Christoph Cullmann 2019-07-14 08:32:51 UTC

*** This bug has been marked as a duplicate of bug 404907 ***
Comment 12 Gabriel Fernandes 2020-03-22 19:14:34 UTC
This bug still occurs (kind of).
I noticed it happens when you have some Asian characters in the line, for example.
Try pasting 한국어 or 日本語 and at the same line _, the bottom of the line simply disappears, it seems to be some sort of miscalculation of line height (as these characters are taller).
Comment 13 Gabriel Fernandes 2020-03-22 19:23:32 UTC
https://imgur.com/a/soELt03
- Same text