Click to See Complete Forum and Search --> : How to write Text verticaly using Textout of CDC
Saye
October 27th, 1999, 11:27 AM
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
gabriel
October 27th, 1999, 11:40 AM
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
Narendra Jain
June 10th, 2002, 08:22 AM
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
ratheesh ravi
June 10th, 2002, 08:34 AM
hi
create a font with lfEscapement and lfOrientation as 900
and lfFaceName as "@Ariel".
regards
ratheeshravi
:)
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.