- Home /
Problems about GUI fontsize
I declared 2 GUIstyles in one script, like this:
var TextStyle1 = new GUIStyle(); var TextStyle2 = new GUIStyle();
In the inspect I set the fontsize of "TextStyle1" to be 40, and, the fontsize of "TextStyle2" to be 30, Now here is the question: If i just run it in unity, the different fontsizes were set correctly, but if i "build and run" it on an andriod pad, the text showed on the pad screen were the same small, just like I didn't set it before.
Can anyone tell me what happened??? Thanks!
Answer by Fattie · Mar 15, 2013 at 07:11 AM
FWIW...
note the selected answer in green here ...
http://answers.unity3d.com/questions/384623/setting-font-size-according-to-screen-dpi.html
we totally gave up and just made the change to GlyphDesigner/2DTK. It is incredibly easier.
Your answer
Follow this Question
Related Questions
Change fontsize on GUI textfield and GUI button 1 Answer
Defualt GUI Style 1 Answer
Is there a way to get the size of text? 1 Answer
Best method for multiple styles within textbox? 1 Answer
Creation of checkbox next to text 1 Answer