Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cbmvax!bagate!dsinc!widener!iggy.GW.Vitalink.COM!lll-winken!elroy.jpl.nasa.gov!swrinde!mips!spool.mu.edu!munnari.oz.au!ariel!ucsvc.ucs.unimelb.edu.au!wehi.dn.mu.oz!baxter_a From: baxter_a@wehi.dn.mu.oz Newsgroups: comp.sys.amiga.programmer Subject: Re: Bitmapped font scaling? AmigaMail! Message-ID: <1991Jun28.165053.24639@wehi.dn.mu.oz> Date: 28 Jun 91 16:50:52 GMT References: <1124.2867637f@vger.nsu.edu> <22695@cbmvax.commodore.com> <1991Jun27.104700.24636@wehi.dn.mu.oz> <22736@cbmvax.commodore.com> Organization: Walter & Eliza Hall Institute Lines: 23 In article <22736@cbmvax.commodore.com>, darren@cbmvax.commodore.com (Darren Greenwald) writes: > What do you want to rotate? The font data, or the output from Text()? > Well, either. I want to write sideways and make it look like its the same font. It is a little harder than rotating a bit map (which is what I thought would do until one of you kind guys provided the code) because of the variable screen aspect ratio. > I suspect what you want is to have a line of text rotated before > its drawn in the layer - actually you can do that now if your > willing to do the rotation (e.g., draw in an off-screen map, > rotate, and BltTemplate() rotated image into visible layer). > You could use DPAINT's rotation feature to get a feel for how fast, > or slow it might be done. > > The bitmap scale routines actually create a new font with scaled data. > There is therefore no performance penality for using a scaled font > (other than the initial scaling). > > Rotation of a line on the other hand has to be done on the fly. Regards Alan