Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 506885

Summary: [GTK3] Underscore not visible unter Ubuntu 16.04
Product: [Eclipse Project] Platform Reporter: Lars Vogel <Lars.Vogel>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: ericwill, gautier.desaintmartinlacaze, jonah, Lars.Vogel, stefanescu.a
Version: 4.5Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Screenshot Eclipse
none
Screenshot Gedit none

Description Lars Vogel CLA 2016-11-02 06:17:53 EDT

    
Comment 1 Lars Vogel CLA 2016-11-02 06:19:26 EDT
The underscore is not visible in Eclipse with Ubuntu 16.04. 

Here is my example text, paste this into a text editor in Eclipse. I attach screenshots how it looks like.

Test _underscore_ in Eclipse.
Comment 2 Lars Vogel CLA 2016-11-02 06:20:36 EDT
Created attachment 265152 [details]
Screenshot Eclipse
Comment 3 Lars Vogel CLA 2016-11-02 06:21:01 EDT
Created attachment 265153 [details]
Screenshot Gedit
Comment 4 Lars Vogel CLA 2016-11-02 06:28:01 EDT
Resetting the font to the default via the Color and Fonts dialog fixed that.
Comment 5 Jonah Graham CLA 2017-01-07 05:32:01 EST
Why is this bug invalid? The screenshots attached show gedit drawing the underscores and eclipse not? 

There are other people[1] having this same issue, and while it can be worked around with a font change, users have no visibility of that.

[1] Bug 498384 and forum: https://www.eclipse.org/forums/index.php?t=msg&th=1083573&goto=1751268&#msg_1751268 and certainly others who just move on.
Comment 6 Eric Williams CLA 2018-04-09 17:21:20 EDT
Is this in StyledText? Regular Text? Does the issue still reproduce?
Comment 7 Eric Williams CLA 2018-05-02 14:10:10 EDT
Ping: Lars does this issue still reproduce on Ubuntu 17.10?
Comment 8 Jonah Graham CLA 2018-05-02 16:10:29 EDT
(In reply to Eric Williams from comment #7)
> Ping: Lars does this issue still reproduce on Ubuntu 17.10?

I have tried and failed to reproduce this in 18.04 (the new LTS release that came out a few days ago). 1 to 1 1/2 years ago I saw an uptick of this problem and I haven't seen it so much recently. I don't know which side was fixed (better font info from GTK, better font files, or changes to SWT).
Comment 9 Eric Williams CLA 2018-05-02 16:43:30 EDT
(In reply to Jonah Graham from comment #8)
> (In reply to Eric Williams from comment #7)
> > Ping: Lars does this issue still reproduce on Ubuntu 17.10?
> 
> I have tried and failed to reproduce this in 18.04 (the new LTS release that
> came out a few days ago). 1 to 1 1/2 years ago I saw an uptick of this
> problem and I haven't seen it so much recently. I don't know which side was
> fixed (better font info from GTK, better font files, or changes to SWT).

Likely the issue was on GTK's end. 18.04 uses GTK3.22 which is the latest up-to-date release. 16.04 had GTK3.18 which had several bugs.

I'm going mark this as resolved: if anyone experiences it on Ubuntu 18.04 please reopen this ticket.
Comment 10 Lars Vogel CLA 2018-05-03 02:49:52 EDT
(In reply to Eric Williams from comment #9)

> I'm going mark this as resolved: if anyone experiences it on Ubuntu 18.04
> please reopen this ticket.

Works also fine with Ubuntu 17.10. Thanks for closing this one.
Comment 11 Adrian Stefanescu CLA 2018-07-13 03:46:54 EDT
This invisible underscore happen on GTK 3.18 from Mint and Eclipse 4.7.x

I think the problem where the different font sizes used for editors. We have some "common" preferences system for Eclipse and it set the editor fonts "Consolas" that I don't have on my machine.

I only changed Java editor font to "Inconsolata medium" and left the fonts unchanged for the other Editors. In the Java editor the _ wasn't visible.

The fix was to change the fonts of all editors and views to the same font as the Java editor and _ was visible
Comment 12 Eric Williams CLA 2018-07-13 10:15:12 EDT
(In reply to Adrian Stefanescu from comment #11)
> This invisible underscore happen on GTK 3.18 from Mint and Eclipse 4.7.x
> 
> I think the problem where the different font sizes used for editors. We have
> some "common" preferences system for Eclipse and it set the editor fonts
> "Consolas" that I don't have on my machine.
> 
> I only changed Java editor font to "Inconsolata medium" and left the fonts
> unchanged for the other Editors. In the Java editor the _ wasn't visible.
> 
> The fix was to change the fonts of all editors and views to the same font as
> the Java editor and _ was visible

Does it happen on GTK3.22 (i.e. Ubuntu 18.04 or 17.10)?