home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / programm / misc / 5438 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.2 KB  |  32 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc,comp.windows.ms.programmer
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!csus.edu!netcom.com!whedon
  3. From: whedon@netcom.com (Bill Whedon)
  4. Subject: Re: Drawing Text on its side in BC++?
  5. Message-ID: <1993Jan27.044824.14852@netcom.com>
  6. Organization: Laughing_Dragon
  7. References: <C17xG3.DMw@cs.uiuc.edu> <DAVE.93Jan26133650@wundt.harlqn.co.uk>
  8. Date: Wed, 27 Jan 1993 04:48:24 GMT
  9. Lines: 21
  10.  
  11. In article <DAVE.93Jan26133650@wundt.harlqn.co.uk> dave@harlqn.co.uk (Dave Emmerson) writes:
  12. >Borland C++ 3.1 includes source for an example programme, truetype,
  13. >which demonstrates how to rotate text. As I recall, its C++. (But not
  14. >at all difficult to modify for ANSI, for anyone else who might be 
  15. >interested.)
  16. >    Dave.
  17. You really need look no further than the description of the LOGFONT struct
  18. to find out how to rotate text.  You set the lfEscapement and lfOrientation
  19. elements (in tenths of a degree) to the appropriate angles, and create the
  20. font, then TextOut at your desired coordinates... voila!  It's rotated!
  21. Try it and see.  It's dead simple.
  22. Cheers,
  23. Bill Whedon  whedon@netcom.com
  24.  
  25.  
  26. -- 
  27. C, ICON dBase Ada!  Paradox?  (B Jovial, Pascal!)
  28.  
  29.  
  30.  
  31.  
  32.