Quantcast
Viewing latest article 7
Browse Latest Browse All 16

Answer by stevenp

I don't think there is any solution for you other than making separate styles when you import them. For example, you will need to import "Arial-Bold", "Arial-Normal", "Arial-Italic" and so on. The font class does provide a way to change the font style dynamically but it is only limited to desktop. The [GUIText][1] documentation states that changing style and size only limited to dynamic fonts and [Font][2] documentation states dynamic fonts only available for desktop. I had the same problem with you because I need to change the text size since I need different size for normal iPhone (480x 320) and Retina Display (960 x 640). So the only solution I think is to import all the fonts in their own style from the beginning and call them accordingly when you need them. This is the [question][3] I've asked about GUIText font size and I think it's similar for your case. [1]: http://unity3d.com/support/documentation/ScriptReference/GUIText.html [2]: http://unity3d.com/support/documentation/Components/class-Font.html [3]: http://answers.unity3d.com/questions/227624/simple-way-to-change-guitext-font-size.html

Viewing latest article 7
Browse Latest Browse All 16

Trending Articles