home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!lsl!snail
- From: snail@lsl.co.uk
- Newsgroups: comp.windows.x.motif
- Subject: Re: HELP - Vertical Text
- Message-ID: <1993Jan21.113347.2954@lsl.co.uk>
- Date: 21 Jan 93 11:33:47 GMT
- References: <djkeogan.726954977@unix2.tcd.ie> <C14FLx.Fp6@csn.org>
- Organization: Laser-Scan Ltd., Cambridge
- Lines: 18
-
- In article <C14FLx.Fp6@csn.org>, tom@teal.csn.org (Tom Schutter) writes:
- > We do some vertical text the hard way, basically by creating a pixmap, drawing
- > text into the pixmap, using XGetImage to copy the pixmap to an image, using
- > XGetPixel and XPutPixel to rotate the image into another image, and then
- > XPutImage to put the result into the final pixmap (window).
- >
- > It is a pain, but it works. (Not quickly).
-
- We do the same, but can rotate to any angle and scale the text up or down as
- well. Always start with the nearest size font, preferably a smaller font than
- that you are scaling to.
- --
- snail@lsl.co.uk
-
- "Washing one's hands of the conflict between the powerful and the powerless
- means to side with the powerful, not to be Neutral."
- Quote by Freire.
- Poster by OXFAM.
-