Click to See Complete Forum and Search --> : Vertical text


May 3rd, 1999, 10:12 AM
Hi,

How do I create a vertical text?
I have tried to create a font with CFont::CreateFont() and then draw the text with CDC::DrawText(), but I don't think I got the parameters right.
If anybody has some help to offer, I would be grateful.

/Henrik Johansson

Jerry Coffin
May 5th, 1999, 08:09 PM
When you create your font, you need to specify the angle of the text in the lfEscapement parameter. The lfOrientation _sounds_ like the thing to use, but it's not...

I've seen a few video drivers that had problems with an escapement of 90 degrees (900 in the parameter). I've found it safer to use 899 or 901, either of which is usually indistinguishable from 900 anyway.


The universe is a figment of its own imagination.