OpenJDK
From Arnout Engelen
Revision as of 21:24, 3 January 2009 by 172.16.3.8 (Talk)
[edit] Fonts
It seems there's something seriously wrong with calculating the 'heights' of fonts in OpenJDK. I ran into this on openjdk 1.6.0_0-b12 on ubuntu, and measured almost the same values as mentioned at http://www.mail-archive.com/2d-dev@openjdk.java.net/msg00312.html
In short, TextLayout.getBounds().getHeight() returns nonsensical data, and Graphics2D.draw(new TextLayout(...)) doesn't give the desired results either.
As for the latter, especially when outputting SVG files 'Graphics2D.setFont(..); Graphics2D.drawString(..);' is much better anyway: this produces nice 'text' elements instead of 'path' objects describing the text.
