Launchpad has imported 6 comments from the remote bug at http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=227.
If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. ------------------------------------------------------------------------ On 2008-10-23T00:57:09+00:00 asch wrote: The java.awt.font.TextLayout.getBounds() method returns a box that is shifted upwards compared to the box that is returned by Sun's official JRE. Sample code: package swingbug; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Rectangle; import java.awt.font.FontRenderContext; import java.awt.font.TextLayout; import java.awt.geom.Rectangle2D; import javax.swing.JFrame; public class SwingBug extends JFrame { private static final long serialVersionUID = 1L; public static void main(String[] args) { new SwingBug().setVisible(true); } public SwingBug() { setTitle("Swing bug"); setSize(400, 400); repaint(); } @Override public void paint(Graphics g) { Graphics2D graphics=(Graphics2D) g; graphics.setColor(Color.BLUE); graphics.fillRect(0,0,400,400); drawString(graphics, "Hello Kitty!", 100, 100); } public void drawString( Graphics2D graphics, String string, int x, int y) { if (string.length() > 0) { Font f = new Font("times", 0, 16); graphics.setFont(f); FontRenderContext fontRendererContext = new FontRenderContext(null, true, true); TextLayout textLayout = new TextLayout(string, f, fontRendererContext); Rectangle2D rectangleOfText=textLayout.getBounds(); Rectangle backgroundRectangle=rectangleOfText.getBounds(); graphics.setColor(new Color(1.0f,1.0f,1.0f,0.5f)); graphics.fillRect(backgroundRectangle.x+x,backgroundRectangle.y+y,backgroundRectangle.width,backgroundRectangle.height); graphics.setColor(new Color(0,0,0)); textLayout.draw(graphics, x, y); } } } Reply at: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/289784/comments/0 ------------------------------------------------------------------------ On 2008-10-23T00:58:50+00:00 asch wrote: Created attachment 123 The result of the example code on icedtea6 When generating this screenshot this JRE is used: $ java -version java version "1.6.0_0" IcedTea6 1.3.1 Runtime Environment (build 1.6.0_0-b12) OpenJDK 64-Bit Server VM (build 1.6.0_0-b12, mixed mode) Reply at: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/289784/comments/1 ------------------------------------------------------------------------ On 2008-10-23T01:00:22+00:00 asch wrote: Created attachment 124 This is how Sun JRE renders the same window Reply at: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/289784/comments/2 ------------------------------------------------------------------------ On 2008-10-23T01:07:43+00:00 asch wrote: Created attachment 125 With Compiz activated the result is getting more weird The "dust" on the picture appears when I run the test code with compiz activated. It is not deterministic but is always different on each run of the code. The "extra" white rectangle is always the same. It seems to be video driver problem but other (non Java) programs on the desktop all work fine and are not affected. Reply at: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/289784/comments/3 ------------------------------------------------------------------------ On 2008-10-23T21:06:51+00:00 Martin Buchholz wrote: (In reply to comment #0) I'm no 2-d expert, but these appear to be the same bug: swing TextLayout.getBounds() returns shifted bounds http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=227 OpenJDK: vertical text metrics may be significanly different from those returned by Sun JDK http://bugs.sun.com/view_bug.do?bug_id=6761856 See also thread on this on 2d-...@openjdk.java.net Reply at: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/289784/comments/4 ------------------------------------------------------------------------ On 2008-11-07T13:06:58+00:00 Mark J. Wielaard wrote: changeset: 1167:7175ea5857e4 user: Mark Wielaard <m...@klomp.org> date: Fri Nov 07 13:47:41 2008 +0100 files: ChangeLog HACKING Makefile.am patches/icedtea-6761856-freetypescaler.patch description: * patches/icedtea-6761856-freetypescaler.patch: New patch. * Makefile.am (ICEDTEA_PATCHES): Add new patch. * HACKING: Document new patch. Reply at: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/289784/comments/17 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/289784 Title: netbeans is not well rendered using openjdk To manage notifications about this bug go to: https://bugs.launchpad.net/openjdk/+bug/289784/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs