Bug 189084 - Bug in getTextBounds() on GTK
Summary: Bug in getTextBounds() on GTK
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.7   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted, triaged
Depends on:
Blocks:
 
Reported: 2007-05-25 03:20 EDT by Dani Megert CLA
Modified: 2020-04-06 04:05 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2007-05-25 03:20:27 EDT
3.3 RC1.

According to bug 188859 comment 5 there's still a bug in getTextBounds() on GTK.
Comment 1 Steve Northover CLA 2007-05-25 11:12:43 EDT
Not for 3.3.
Comment 2 Eric Williams CLA 2016-08-05 14:15:48 EDT
I can still reproduce this issue, the text jumps a bit to the right when enabling colored fonts as per 188859#c2.
Comment 3 Ian Pun CLA 2017-05-30 10:06:42 EDT
I can't seem to find the place to enable colored labels in bug 188859 comment 2 to test if this is still an on-going issue. I will follow up if there is any update to how to reproduce this, and if not, will close in a month.
Comment 4 Dani Megert CLA 2017-05-30 10:16:14 EDT
(In reply to Ian Pun from comment #3)
> I can't seem to find the place to enable colored labels in bug 188859
> comment 2 to test if this is still an on-going issue. I will follow up if
> there is any update to how to reproduce this, and if not, will close in a
> month.

See comment 1 (I did not test it).
The preference is now called 'Use mixed fonts and colors for labels'
Comment 5 Ian Pun CLA 2017-05-30 10:47:50 EDT
(In reply to Dani Megert from comment #4)
> (In reply to Ian Pun from comment #3)
> > I can't seem to find the place to enable colored labels in bug 188859
> > comment 2 to test if this is still an on-going issue. I will follow up if
> > there is any update to how to reproduce this, and if not, will close in a
> > month.
> 
> See comment 1 (I did not test it).
> The preference is now called 'Use mixed fonts and colors for labels'

Thanks, I was able to reproduce a bit of it. 

The original bug seems to have little to no margin of distance between the text and the icon with color labels enabled, and a proper margin when it is off. Running GTK3.22, switching between colored labels and non-colored labels moves the text by 1 pixel, giving more room with colored labels enabled. Although I do believe this is still a bug, I think it's a lot more minor than when first reported.
Comment 6 Dani Megert CLA 2017-05-30 10:50:02 EDT
(In reply to Ian Pun from comment #5)
> The original bug seems to have little to no margin of distance between the
> text and the icon with color labels enabled, and a proper margin when it is
> off. Running GTK3.22, switching between colored labels and non-colored
> labels moves the text by 1 pixel, giving more room with colored labels
> enabled. Although I do believe this is still a bug, I think it's a lot more
> minor than when first reported.

I do agree.
Comment 7 Ian Pun CLA 2017-05-30 13:51:57 EDT
After some investigation, it doesn't seem to be a getTextBounds() issue as it is not actually querying getTextBounds() upon clicking the "Use mixed fonts and colors for labels" checkbox, meaning I don't think it has to do with getTextBounds() but more about how it's being painted. I have some other issues I need to address so I can't investigate this much further so I will assign it back to anyone who has the time to work on it.
Comment 8 Eclipse Genie CLA 2020-04-06 04:05:19 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.