Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

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

share|improve this answer
    
so I think that's what i'm looking for, thanks –  Ali Veli May 24 '11 at 16:17
    
Hello again, this solved my problem. I just wanted to share, Thanks :) –  Ali Veli May 25 '11 at 10:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.