- Home /
This post has been wikified, any user with enough reputation can edit it.
How to make on screen text resizable
I know that the size of any on screen text is controlled by the font size used. However, the font size value varies only between integral values, and thus seamless variation of font size is impossible.
In my project I allow the game to be played from a resizable window and use Label
to show text. The font size has been made a factor of the Screen.height
Something like myGUI.fontSize = ((int) Screen.height * 0.1)
is being used currently. But it doesnot allow for seamless variation of text along the screen. What are some ways to remedy this?
Comment