- Home /
Changing Font Size
Hey, I am making the menu's for my game, and the default font is rather small. Does anyone know how to increase the font size?
Answer by Ashkan_gc · Jan 20, 2010 at 03:22 AM
you should import a new font and then in import settings you can change the size of your font. search google for "free ttf fonts" and you will find many fonts on the net. i think there are some fonts in standard assets too.
Answer by name111 · Sep 21, 2010 at 10:55 PM
increasing font size is simple. first find the font in the project view, select it then on the font texture, change the size, and to reduce edge pixelation, make the font size larger and the object smaller (if possible)
Answer by Jose-Abalos · Apr 05, 2014 at 04:22 AM
A fast way of changing the default font's size, assuming you want to do it for a Label and in C#, is by writing, on the OnGUI() method:
GUI.skin.label.fontSize = 20;
For Buttons, it's the same procedure, but using button instead of label.
Thanks a million, Jose.
That was quick and easy!
$$anonymous$$udos to you!
Your answer
Follow this Question
Related Questions
Is there a way to measure the pixel with/height of a string with a given font? 2 Answers
Change Font Style OnMouseEnter 0 Answers
Change Font Size of GUI Table 0 Answers
french accent and dynamic fonts 1 Answer