Posted by rossjudson
on October 5, 2008 at 8:57 PM PDT
I am using JDK6u10. I have a tree of nodes, with SGText down the tree, using the "Candara" font under Windows. The font size is set to 18. No scaling or rotation is involved; just translation. The SGText is overlaid on top of a filled ellipse.
At the bottom of the window containing the JSGPanel I have a JPanel with a JLabel in it. I set the font of the label to Candara, size 18, and put the string "Query Types" in it (my SGText has the same string).
The two strings look very different, when displayed. The quality of the JLabel is very good, and the quality of the SGText is very poor. I've tried altering the anti-aliasing flags and it doesn't seem to help much. In particular, the 'y' characters look proper and proportionate on the JLabel, and very much out of place on the SGText.
I'm not sure what method the JLabel is using, but SGText really needs to look at using the same method.