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

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!mcsun!Germany.EU.net!gmd.de!newsserver.jvnc.net!yale.edu!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!utcsri!helios.physics.utoronto.ca!alchemy.chem.utoronto.ca!rburrow
  3. From: rburrow@alchemy.chem.utoronto.ca (Bob Burrow)
  4. Subject: Re: Drawing Text on its side in BC++?
  5. Message-ID: <1993Jan26.173908.28351@alchemy.chem.utoronto.ca>
  6. Followup-To: Font, Rotation
  7. Summary: Do it in CreateFont(Indirect)
  8. Organization: University of Toronto Chemistry Department
  9. References: <19953@mindlink.bc.ca>
  10. Date: Tue, 26 Jan 1993 17:39:08 GMT
  11. Lines: 32
  12.  
  13. > Steven Greco writes:
  14. >
  15. > Posted: Thu, 21 Jan 1993 19:14:2
  16. > Org.  : University of Illinois at Urbana-Champaign
  17. > I need to draw text on its side and was wondering if it is possible to
  18. > do this with Borland C++ and owl.  Right now I am using DrawText to draw
  19. > my text, but it just produces normal text, not text on its side.  Is this
  20. > possible?  Is there any way to rotate a bitmap possibly?
  21. > Thanks in advance.
  22. > --
  23. > ^ Steven Greco ^           "I've got a real indication of a laugh coming
  24. > on..."
  25. > greco@cs.uiuc.edu                  -Thought Gang
  26. > s-greco@uiuc.edu
  27.  
  28. You have to create the font with the rotation attribute -- set nOrientation
  29. and nEscapement in CreateFont or CreateFontIndirect.  nOrientation is the
  30. orientation of the letters and nEscapement is the angle the text is
  31. written out as.  Both these are ints in tenths of a degree.  There's an
  32. example program wth bcc, truetype.c, found under examples/win31/truetype
  33. if you want to see how it's done.  
  34. As an aside -- has anyone tried printing rotated fonts?  I found that the
  35. hpIII & hpIIp drivers produce different (& both incorrect) outputs! 
  36.  
  37. Hope this helps...
  38. Bob
  39. --
  40.  Bob Burrow                           Department of Chemistry          
  41.  rburrow@alchemy.chem.utoronto.ca     University of Toronto      
  42. -- 
  43.  Bob Burrow                           Department of Chemistry          
  44.  rburrow@alchemy.chem.utoronto.ca     University of Toronto      
  45.