Re: [JAVA2D] Poor quality rotated text

2008-03-05 Thread java2d
I tested image rotation with bicubic interpolation. The results with nearest neighbour are terrible, but not a surprise. [Message sent by forum member 'mthornton' (mthornton)] http://forums.java.net/jive/thread.jspa?messageID=262431

[JAVA2D] Poor quality rotated text

2008-03-04 Thread java2d
When rotated at some angles the position of characters relative to the baseline is a bit erratic (by a pixel or so). This still occurs with text antialiassing and/or fractional metric hints enabled. I'm using jre6_u04. I was wondering if it would be better to render the text (horizontally) into

Re: [JAVA2D] Poor quality rotated text

2008-03-04 Thread Phil Race
I think this is a consequence of trying to position each glyph at the closest point its projection on to the theoretical baseline on a relatively low-res device. I suspect it would look fine at printer resolutions. Whilst rotating an image would help the baseline I don't think you'd be happy

Re: [JAVA2D] Poor quality rotated text

2008-03-04 Thread java2d
I think this is a consequence of trying to position each glyph at the closest point its projection on to the theoretical baseline on a relatively low-res device. Indeed. I get very nicely rendered characters with odd looking positions. printer resolutions. Whilst rotating an image would

Re: [JAVA2D] Poor quality rotated text

2008-03-04 Thread java2d
I can now confirm that rotating the outline produces excellent results. Thanks. [Message sent by forum member 'mthornton' (mthornton)] http://forums.java.net/jive/thread.jspa?messageID=262257 === To unsubscribe, send email

Re: [JAVA2D] Poor quality rotated text

2008-03-04 Thread Jim Graham
Just a suggestion about techniques - make sure you use some sort of interpolation filtering hint when you try to rotate an image like this. The default algorithm NEAREST_NEIGHBOR is the fastest, but you'd get better quality with BILINEAR filtering. I'm not sure that BICUBIC (slower still)