hello!
important for me
i’m making a game for android and i want a bigger gui text
i put it for 40 size and when i click play on pc it’s 40pt,
but when a build and run it on android it’s smaller.
so i cant take it bigger
HELP!!!
hello!
important for me
i’m making a game for android and i want a bigger gui text
i put it for 40 size and when i click play on pc it’s 40pt,
but when a build and run it on android it’s smaller.
so i cant take it bigger
HELP!!!
I’ve never worked with Android, but here’s something I wrote about iOS the other day:
To change the size of a font, you need to change it in the True Type Font Importer. This can be done by left-clicking on a font in your project view. My fonts are in the Standard Assets folder.
If you want to use fonts with different sizes in iOS, you need to import the same font multiple times. This can be done with the following steps:
Do NOT attempt to change the font size in the GUIStyle. This only works for dynamic fonts, which are not supported in iOS.
You also have to make sure that you have NOT chosen Dynamic as the character setting in the True Type Font Importer. I have always used unicode, but would guess that the ASCII settings might work as well.
First of all, Dynamic fonts are only supported on PC and MAC platforms.
So in order to get fonts to work on Mobile devices you must use Unicode for the Character set.
This is what you need to do.
OK LOVE U NA
I Import msyh.TTF font file in Unity,set the character set to Unicode,and set the font size to 8,the font can display correct,but when I set font size to 12 then display like below.Why is that so!
[909-fontSize.jpg|909]
Download this and place into your Asset/Resource folder
http://www.webpagepublicity.com/free-fonts/a/Antimony%20Funk.ttf
Add Varible public Font fontNormal;
Within OnGui add this:
GUIStyle myStyle = new GUIStyle();
fontNormal = Resources.Load(“Antimony Funk”, typeof(Font)) as Font;
myStyle.font = fontNormal;
myStyle.alignment=TextAnchor.MiddleRight;
GUI.Label(new Rect(Screen.width-95,Screen.height-Screen.height+20,60,60), “iOS”,myStyle);