I'm using scaling affine transformations extensively in the context of my Java2D-based ZUI toolkit [1], and I do not have this text rendering problem, no matter which font I use.
[1] http://zvtm.sourceforge.net
It looks like you are applying the scaling affine transform for zooming purposes on the final buffered image. Is that what you actually do?
If so, I think this explains why the font rendering does not look good (it is applied on something equivalent to a bitmap). Instead, you should apply it earlier in your rendering process, i.e. before calling the drawText method: IIRC, the Java2D engine uses information about the scale factor to choose the appropriate font size (and then renders it correctly). If you apply the affine transform *after* the text has been rendered, it is too late.
Emmanuel
-- Emmanuel Pietriga ([EMAIL PROTECTED]) tel (mobile): +33 6 88 51 94 98 http://claribole.net
Michael Seele wrote:
hi guys, i have a big problem: my application shows lot of rectangles which can be dragged on the screen. the application also supports zooming, i implement this with transform scale. is it possible to use double buffering to draw the rectangles(they contains lot of text). when i use the standart bufferedImage, the text looks not very good. for example i add two screenshoots. one in 100% and one in 400%!!! thanks
-- Mit freundlichen Gruessen Michael Seele([EMAIL PROTECTED])
G & H Softwareentwicklung GmbH Tel.: {+49|0} 7451 - 53 706 0 Robert-Bosch-Str. 23 Fax: {+49|0} 7451 - 53 706 90 D-72160 Horb a.N. http://www.guh-software.de
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
------------------------------------------------------------------------
------------------------------------------------------------------------
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
