Re: [JAVA2D] Pretty vs ugly: textLayout.draw(g) vs g.fill(textLayout.getOutline())

2009-01-26 Thread java2d
There are two different engines in java2d for rendering text and generic shapes. Please use TextLayout for rendering text as it works through text rendering engine. Though you might get comparable quality and better performance using fill for large text. [Message sent by forum member 'alex2d'

Re: [JAVA2D] Pretty vs ugly: textLayout.draw(g) vs g.fill(textLayout.getOutline())

2009-01-26 Thread java2d
Thank you very much. So this means I should avoid modeling text as Shape. I also find really helpful the comment on the quality for large text: I was quite buffled that the applet here: http://java.sun.com/docs/books/tutorial/2d/advanced/transforming.html draws a quite nice piece of text, using