home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / x / motif / 8722 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  1.2 KB

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