Community
Participate
Working Groups
StyledText style.underline = true not work on ubuntu 16.04. Checked on ubuntu 14.04 and it works good.
Do you have an example of there this is done in Eclipse? Or perhaps a snippet? Thanks!
Created attachment 262227 [details] Snippet189 OK I see it with Snippet189 (attached)
Created attachment 262228 [details] Screen shot
Created attachment 264421 [details] A sample program to test underline style Can't reproduce with Neon.1 RC4 on Fedora 24 (gtk 3.20.9). I've debugged TextLayout.computeRuns() on both systems and everything looks similar. For the record, Ubuntu 16.04, libpango is 1.38.1 on Fedora 24, pango is 1.40.1 I have also compiled and tested a modified version of cairosimple example from the pango source (see attachment). It also properly draws the underline style in both cases... To compile it: $ gcc -Wall -g $(pkg-config --cflags pangocairo) cairosimple.c -o cairosimple $(pkg-config --libs pangocairo) -lm and to run it: $ ./cairosimple output.png # output.png is the result Hope this helps.
Mikaël, do you see the bug with the snippet I attached? I can't reproduce the issue anymore. Maybe something in the theming changed on the Ubuntu side?
Unfortunately, I still see the bug with Snippet189 (fully updated Ubuntu 16.04, SWT binary tag v4713, SWT commit 9026eefff4d74dfd96b7764e3570488af9e98dea). Did you re-install Ubuntu from scratch or just updated it?
Interesting, I was able to reproduce it again. It was because of my "Text Scaling factor" that was set to 0.95 instead of 1 (in Unity Tweak Tool). Once I set it back to 1, then I see the problem again. That could be a useful clue...
Created attachment 264551 [details] Screen shot This bug seems very sensitive to font height. I modified the snippet to show this. The bug is there for 11, 12, 13 and 17 points.
Created attachment 264552 [details] Snippet with different font height
Created attachment 264904 [details] GTK project with snippet I've been trying to reproduce this bug with GTK-only code without success. Here is the project I came up with. Perhaps someone else has an idea.
Is this still an issue on Ubuntu 18.04 with 4.8 RCx?
(In reply to Eric Williams from comment #11) > Is this still an issue on Ubuntu 18.04 with 4.8 RCx? Not, it works correctly on Ubuntu 18.04 with 4.8rc4a. TBH, I don't think anyone will be looking at this issue. It's likely that the bug is not on the Eclipse side either, so I'll close this.