Community
Participate
Working Groups
Build ID: M20060921-0945 Steps To Reproduce: 1. Create a Link and set a text, like "First | Previous | Next | Last" 2. Use Link.pack() to set the size of the Link component
Created attachment 56465 [details] Snippet showing the bug described
Created attachment 56466 [details] Picture showing the bug described Look that in Linux, the "Last" word is not displayed.
Note that the amount that this is off by may be dependent on the gtk version, because when I initially tried this snippet on my rhel4 (gtk 2.4.13) only one pixel of width was clipped from the right side.
If it helps, I'm using an out-of-the-box install of Ubuntu 6.10 with Gnome 2.16.1
Felipe, is the link clipped for you?
works for me with GTK 2.8.20 GTK 2.10.1 What is GTK version and Pango version that gnome 2.16 is using? The default font for the Link widget in my machine is Sans 11, what do yo have on your machine ? add to your snippet: System.out.println (link.getFont().getFontData()[0]); Can you test with different fonts? more maybe changing the AA mode ?
System.out.println (link.getFont().getFontData()[0]) returns to me: 1|Sans|10|0|GTK|1| The GTK version installed is: 2.10.6-0ubuntu1 The Pango version installed is: 1.14.5-0ubuntu1
works for me with gtk-2.10.1, pango-1.13.3, and cairo 1.2.0 Bogdan, can you try this out ? Anibal, what is your locale ? I try it on en_US.UTF-8 and pt_BR.UTF-8 (I'm guessing you speak portugues).
Complementing: The Cairo version installed is: 1.2.4-1ubuntu2 The Locale is: en_US.UTF8 Now I'm updating Ubuntu to see if the problems get fixed (I saw that there are new versions on Ubuntu repositories of the libs you asked me).
GTK Version: 2.10.6-0ubuntu3 (updated) Sun JDK Version 1.5.0_10 & 1.6.0 (b105) Problem keep happening :(
*** Bug 166363 has been marked as a duplicate of this bug. ***
Bogdan has this problem on this machine running with: gtk 2.10.4 + cairo 1.2.4 gtk 2.10.11 + cairo 1.2.6 On my machine it works with: gtk 2.10.12 + cairo 1.2.0 + pango 1.16.4 I'm guessing cairo 1.2.4 intruduced a bug in pango I'm afraid this can be related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=123425 https://bugs.freedesktop.org/show_bug.cgi?id=5200
Created attachment 66224 [details] c test case this is c test case, I would like to know if it fails when running on a new version of cairo. I could not get cairo cause cairographics.org is down right now.
works for me with gtk 2.10.12 + cairo 1.4.6 + pango 1.16.4 if you update your machine to the lastest stable version the problem should go away.
Anibal: Did you have the chance to test my c test case to to update the gtk/cairo/pango libraries in your system ? Do you still have the problem ?
"Anibal: Did you have the chance to test my c test case to to update the gtk/cairo/pango libraries in your system ?" I'm sorry, I meant: "Anibal: Did you have the chance to test my c test case OR to update the gtk/cairo/pango libraries in your system ?"
Sorry, but I'm not testing on Linux anymore. I'm finishing the product for initial release and in the first moment it will run only on Windows machines. After all the problems I faced, I decided that we will choose a Linux distro to be the 'supported' one by my team. But as soon as I can (read this week) I will download a fresh version of Ubuntu and test you patch. Thank you.
Okay, I'm convienced this is a problem with cairo 1.2.4 and 1.2.6 (works on cairo 1.4.x). Please reopen this report if you see this problem in the newer releases of cairo. Thanks
See bug 393602 for follow-ups.