Thread: Text rotation

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    20

    Question Text rotation

    I'm using this:

    CString string=" Some Text";
    dc.SetTextAlign( VTA_CENTER );
    dc.TextOut( 330, 610, string );


    How do I rotate a text?
    (For example I want the text to be vertical not horizontal)

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    20
    Also, Why the text rectangle is white?

  3. #3
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    You can alter the angle of the text by creating a font using CreateFont() and specifying the orientation and escapement parameters to the angle you require.

    To change the background colour you use SetBkColor().
    zen

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    20
    It works!
    Thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. camera rotation matrix
    By Vick jr in forum Game Programming
    Replies: 5
    Last Post: 05-26-2009, 08:16 AM
  2. Image rotation - doesn't always work
    By ulillillia in forum C Programming
    Replies: 12
    Last Post: 05-03-2007, 12:46 PM
  3. struct question
    By caduardo21 in forum Windows Programming
    Replies: 5
    Last Post: 01-31-2005, 04:49 PM
  4. Scrolling The Text
    By GaPe in forum C Programming
    Replies: 3
    Last Post: 07-14-2002, 04:33 PM
  5. Replies: 1
    Last Post: 07-13-2002, 05:45 PM