1
\$\begingroup\$

I draw some text on screen using ID3DXFont::DrawText. This text should be displayed the same regardless of screen resolution.

For example, if screen resolution is low, text wrapped and when it is higher text is not wrapped. How can I avoid such situation? I want text size to be connected to screen resolution so if resolution is lower I want the text to be relatively smaller so that no wrapping happens. Is there any way?

Thanks in advance

\$\endgroup\$

1 Answer 1

3
\$\begingroup\$

You will have to manually get the size of the screen and scale down the requested text size.

\$\endgroup\$
1
  • \$\begingroup\$ Hello again, this solved my problem. I just wanted to share, Thanks :) \$\endgroup\$
    – Ali Veli
    Commented May 25, 2011 at 10:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .