Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!uunet!mcsun!ukc!edcastle!hwcs!sfleming From: sfleming@cs.hw.ac.uk (Stewart T. Fleming) Newsgroups: comp.windows.x Subject: Re: Vector Fonts Message-ID: <1815@odin.cs.hw.ac.uk> Date: 7 Dec 90 16:09:51 GMT References: <9011271415.AA26954@bruker.com> <2908@gazette.bcm.tmc.edu> <1990Dec4.233145.6208@sq.sq.com> Sender: news@cs.hw.ac.uk Reply-To: sfleming@cs.hw.ac.uk (Stewart T. Fleming) Organization: Dept. Of Computer Science, Heriot-Watt University, Edinburgh Lines: 26 In article <1990Dec4.233145.6208@sq.sq.com>, lee@sq.sq.com (Liam R. E. Quin) writes: |> etaylor@wilkins.iaims.bcm.tmc.edu (Eric Taylor) writes: |> >Here is a simplistic method for rotating text by an arbitrary angle: |> > [...] |> > I2(x,y) = I(a,b) |> > where |> > a = x * cos(theta) - y * sin(theta) |> > and |> > b = x * sin(theta) + y * cos(theta) |> |> You will lose bits if you do this, or you will get holes in the result, |> depending on how you implement it. |> This is an FAQ in comp.graphics; the recommendation there is to apply the inverse transformation ie create the destination bitmap and for each pixel apply the inverse rotation transform to get a pixel in the original bitmap and use that. For more details, see comp.graphics... |> Liam R. E. Quin, lee@sq.com, SoftQuad Inc., Toronto, +1 (416) 963-8337 STF -- sfleming@uk.ac.hw.cs or sfleming@cs.hw.ac.uk or ...ukc!cs.hw.ac.uk!sfleming "Jedi programmers do it with byte sabres."