CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 1999
    Posts
    89

    How to write Text verticaly using Textout of CDC

    Hi everybody,

    I'm drawing a graph on the screen using CDC MoveTo and LineTo,
    everything is fine but I want to label my y axe and I only have space for
    vertical writing...I tried using TextOut but doesn't work !!!

    Can anybody help,

    Thanks in advance


  2. #2
    Join Date
    Apr 1999
    Location
    Paris France
    Posts
    134

    Re: How to write Text verticaly using Textout of CDC

    Hi,

    Create a font with CreateFontIndirect.
    Set the data member (lfEscapement or lfOrientation) of the LOGFONT struct to define the desired orientation.
    Select this font before drawing vertical text

    I don't believe this works with all fonts

    I hope this helps

    Gabriel


  3. #3
    Join Date
    Oct 2001
    Location
    Ahmedabad, India
    Posts
    16

    Question

    Can you tell me what should be the value of (lfEscapement or lfOrientation) to draw vertical text?
    Can you also tell me the name of at least ont font which support drawing of vertical text?

    Thanks in advance

  4. #4
    Join Date
    Jan 2002
    Location
    bangalore india
    Posts
    183
    hi
    create a font with lfEscapement and lfOrientation as 900
    and lfFaceName as "@Ariel".
    regards
    ratheeshravi

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured