[ Home | Contents | Search | Next | Previous | Up ]
Date: 11/30/99
Time: 12:29:59 AM
Q. Does anyone know how to output vertical text to a window i.e. so that I can label a y-axis on a graph?
A. Create a TrueType font with the escapement and orientation set to
900.
TDC dc; // created elsewhere
LOGFONT lf;
TFont( (HFONT)dc.GetCurrentObject(OBJ_FONT) ).GetObject( lf );
strcpy(lf.lfFaceName, "Times New Roman");
lf.lfEscapement = 900;
lf.lfOrientation = 900;
TFont VerticalFont = new TFont( &lf );
Regards,
Scott