[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug awt/27947] Graphics2D buglet with rotated text
From: |
fkung at redhat dot com |
Subject: |
[Bug awt/27947] Graphics2D buglet with rotated text |
Date: |
17 Oct 2006 19:45:59 -0000 |
------- Comment #6 from fkung at redhat dot com 2006-10-17 19:45 -------
Update: it seems like the first character (or first few characters) you type is
rotated properly; then the rotation is lost for all subsequent letters.
Haven't noticed any pattern to how long it will "remember" the transform for
before it forgets it, but the cause of this bug looks like the transform is
being reset after a while.
>From the Java API, under Graphics2D.setTransform(): "WARNING: This method
should never be used to apply a new coordinate transform on top of an existing
transform because the Graphics2D might already have a transform that is needed
for other purposes, such as rendering Swing components or applying a scaling
transformation to adjust for the resolution of a printer.
To add a coordinate transform, use the transform, rotate, scale, or shear
methods."
I suspect our treatment of the internal Graphics2D transform is more strict
than Sun's, thus why directly using setTransform() works on Sun but not
Classpath...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27947