How to display a string vertically?
-
When I use TextOut() to display a string, the string is displayed horizontally. So I create a font with lfEscapement & lfOrientation = 900. And select it to the CDC object. I think the string should be displayed vertically. Unfortunately, it isn't displayed vertically. How can I do that? Thanks in advance. Vincent
-
When I use TextOut() to display a string, the string is displayed horizontally. So I create a font with lfEscapement & lfOrientation = 900. And select it to the CDC object. I think the string should be displayed vertically. Unfortunately, it isn't displayed vertically. How can I do that? Thanks in advance. Vincent
Did you check the return value from CreateFont? There may be some other problem...show us some code Gary Kirkham A working Program is one that has only unobserved bugs
-
When I use TextOut() to display a string, the string is displayed horizontally. So I create a font with lfEscapement & lfOrientation = 900. And select it to the CDC object. I think the string should be displayed vertically. Unfortunately, it isn't displayed vertically. How can I do that? Thanks in advance. Vincent
1. Make sure it's a TrueType font. 2. If it still doesn't work, please post some code. Regards, Alvaro
Well done is better than well said. -- Benjamin Franklin (I actually prefer medium-well.)
-
1. Make sure it's a TrueType font. 2. If it still doesn't work, please post some code. Regards, Alvaro
Well done is better than well said. -- Benjamin Franklin (I actually prefer medium-well.)
Dear Alvaro, Thank you very much. After I added "lf.lfOutPrecision = OUT_TT_ONLY_PRECIS;", it worked. Thanks again Vincent