MFC question about LOGFONT (turning the baseline)

RSMemphis

Golden Member
Oct 6, 2001
1,521
0
0
I am trying to write a program in VC++ (the .NET version currently) that, amongst other things, produces plots.

I do want the labels for the y-axis to be turned by 90 degrees, so I generated LOGFONTs within MFC, and used this:

LOGFONT lf;
memset(&lf, 0, sizeof(LOGFONT)); // zero out structure
lf.lfHeight = 120; // request a 12-pixel-height font
strcpy(lf.lfFaceName, "Arial"); // request a face name "Arial"
lf.lfWeight=FW_REGULAR;
lf.lfOrientation=900;
vert.CreateFontIndirect(&lf);

But for some reason, the font is still horizontal... Does anyone have any ideas?

Thanks very much!!!
 

RSMemphis

Golden Member
Oct 6, 2001
1,521
0
0
Aargh. Gotta remember - first google, then Anandtech forums.

In case anyone wonders, I simply forgot:

lf.lfEscapement = 900 ;