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' (alex2d)]

http://forums.java.net/jive/thread.jspa?messageID=328204

===
To unsubscribe, send email to lists...@java.sun.com and include in the body
of the message signoff JAVA2D-INTEREST.  For general help, send email to
lists...@java.sun.com and include in the body of the message help.


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 Graphics2D.draw(Shape), that made me 
believe that I perhaps do something wrong. And indeed, the quality of the text 
deteriorates when scaled down.

So, thanks a lot for your response, it's nice to know better.
Dimitris
[Message sent by forum member 'ounos' (ounos)]

http://forums.java.net/jive/thread.jspa?messageID=328209

===
To unsubscribe, send email to lists...@java.sun.com and include in the body
of the message signoff JAVA2D-INTEREST.  For general help, send email to
lists...@java.sun.com and include in the body of the message help.