- Home /
How do I increase font size properly?
Hi. I'm having some issues when using Unity's new UI system. I can't make the font size larger than 26. When I try to, the text just disappears. I've tried this with multiple fonts. What am I doing wrong? Thanks.
Answer by amanpu · Nov 18, 2015 at 05:48 AM
Either play with width and height properties of GameObject as specified by other answers. Or set both horizontal or vertical properties to overflow.
Answer by SeasiaInfotechind · Nov 18, 2015 at 05:11 AM
HI, The problem is your text box size is not big enough to hold a bigger font.Simply expand your text area and you can see your font.
Answer by united4life · Nov 18, 2015 at 06:20 AM
Hi,
@Shivanshu and @SeasiaInfotechind are right. You should expand your text area which can be done by changing the width and height of rect transform.
One more way you can increase the font size is by changing the Horizontal Overflow and Vertical Overflow to Overflow. Now increasing the font size will make the text out of the rect transform.
Your answer
Follow this Question
Related Questions
Subscripts and superscripts in Unity new GUI 2 Answers
Change Font Size of GUI Table 0 Answers
Fonts in Android... 0 Answers
GUIBox fontSize without changing other labels? 3 Answers
Is there a way to measure the pixel with/height of a string with a given font? 2 Answers