- Home /
GUI.Label font size display incorrectly on iPhone 4
hi All.
I use GUI.Label for displaying scores of my game. In the editor and Windows/Mac OS it played very well. But when I deploy it on iPhone 4 device, the label font looks very small no matter how I adjust the font size of the GUI.Syle. What's this all about?
Answer by whydoidoit · Jul 28, 2012 at 09:52 AM
Fonts in Unity 3 cannot be dynamically sized on the device- you need a font that is the size you will actually use. Unity 4 will address this.
Thanks your answer $$anonymous$$ike. I just adjust the font size in GUI.Style from Unity Editor, it looks very well when i play my game in Unity Eidtor. Then export it as a XCode project and deploy my project to iPhone 4, the font size is also not changed as if i had never turn over it. It's very strange I don't know what's wrong with it.
I mean in 3 on the device it will not respect the change you made in the Style - you have to actually import the font at every size you need - annoying I know - but until 4 you have to forget that size in the Style if building for mobile devices.
Answer by trop · Oct 05, 2012 at 04:44 AM
hi all im having the same problem, how do you work with it crtaps?how do you import it?and also im getting error in xcode when i use GUI.LAbel, its says bad access.
Please don't ask questions as an "Answer"! Either start a new question or use the Add New Comment button on the right of the screen... Don't worry - everyone does this the first time :)
You change the font size by clicking on the font file in the project window and change the point size.
It would appear your string was NULL for that Bad Access to be happening.
Your answer
![](https://koobas.hobune.stream/wayback/20220613074827im_/https://answers.unity.com/themes/thub/images/avi.jpg)