Hi,

> Is it possible with Java to rotate a font (90 degree)?
> I want to write from top to bottom in a canvas.
> Perhaps you have another solution.

I don't have an easy sorution, but I can tell you how I'd do it:

-create an offscreen Image
-get its Graphics and draw the text left-to-right on it
-use a java.awt.image.PixelGrabber on it
-do some array twiddling to rotate the image
-use a MemoryImageSource on the resulting twiddled array.

Like I said, not easy, but it would actually not take very long (runtime,
that is).

Cheers,
dstn.

Reply via email to