Before OS5, you could rotate a font by writing a little renderer yourself and getting the font pointer. In OS5, the font data is hidden away, so you need to render to a bitmap and rotate the bitmap.

If your project is GPL licensed, you can re-use code in Plucker (www.plkr.org) that does all of that. The code even includes an armlet that does the bitmap rotation. It both has a font renderer for pre OS 3.5 units, and does the write-to-bitmap-and-rotate for OS 3.5+. In fact, it also contains a number of nice utility routines that provided rotated versions of various OS functions like WinDrawRectangle(), if what you're trying to do is to make your program work in landscape mode on units that don't normally support it or something like that.

If your project is not GPL, then contact me by email (ap85 at georgetown dot edu) to discuss possible relicensing--I hold the copyright on almost all of that portion of the Plucker code (I'd have to check CVS logs to be certain, of course). The code there is very stable and most of it is also used in PalmBible+.

Alex

--
Dr. Alexander R. Pruss
Department of Philosophy
Georgetown University
Washington, DC 20057-1133  U.S.A.
e-mail: [EMAIL PROTECTED]
online papers and home page: www.georgetown.edu/faculty/ap85
--------------------------------------------------------------------------
"Philosophiam discimus non ut tantum sciamus, sed ut boni efficiamur."
       - Paul of Worczyn (1424)


-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to