- Home /
Text size on mobile devices
Hi guys,
I followed old guides to solve the problem which makes font size displayed on real mobile devices incorrect compared to Unity: Set Character to Unicode, ASCII, use GUIText font size 0, Normal Style etc. However when I tried to test on the devices again, nothing changed. The font size is still much much smaller than what appeared in Unity Player. I wonder if there's any solution to this problem ? Please help me, thank you very much !
Thank you for the reply. I see that disabling pixel correct fixes the font size issue. However, without it, the text looks blur and lack quality. Is there any way to fix this as well ?
Yup, adjust the font size on the asset itself, not on the GUITexture. So wherever you imported it to, select it and adjust the font size to suit :) You will need to adjust the size (not font size) of the GUIText object to compensate, too.
Feel free to answer this question yourself and mark as accepted to help any others who have this issue :)
I don't know why, but after tinkering here and there randomly, now changing GUIText font size directly works on real devices really well now. Anyway, I think the problem got solved. Thank you a lot POLYGA$$anonymous$$e !!!
Answer by DubstepDragon · Feb 22, 2014 at 11:20 PM
Well, firstly you should format your project to be compatible with phone devices. You can do this from File > Build Settings and select Android/iOS. Then set it as default/switch project to it.
After that it will adapt to it and have all the properties that require phone-specific parameters adjusted automatically, thus all you must do is set a phone resolution from the Game tab/at runtime and then you can adjust everything as you see fit :D
Hope I understood your point! If not, please reply to me asap so I can help you out.
That won't fix the font issue, it just reimports assets etc. The font settings still need to be correct.