Hi,
I need to modify the font size depending on the area where I am writing to but it seems like there is no variable to perform this. Anyone knows how to do it? I need this to work in real time.
Hi,
I need to modify the font size depending on the area where I am writing to but it seems like there is no variable to perform this. Anyone knows how to do it? I need this to work in real time.
you would scale the whole object with the font.
fonts itself can’t be resized, they are generated by the editor and exist as bitmap font only within the client.
So I must create a different font texture for each font size I need on my project?
EDIT: So this means I also have to create a new GUIStyle for elements with big fonts. And what if I change resolution and wanna modify fonts sizes?
If you want to use a particular point size you’ll need to import the font for each size.
If you just want to resize your text but aren’t so worried - just put a scale on the 3d text object.
e.g. http://www.roguishness.com/stuff/twitter.html
I’ve only used the one font import but there’s two separate 3D Text objects for the username and the message, the username object is at scale 1, the message object is at (if I remember rightly) 0.6.
The username looks OK but it’s a little bit more blurry than the message text at the same distance. In theory importing the same font twice at different point sizes would look better.
But I cannot scale it because I am using a GUI.Button with a specific GUIStyle. I tried increasing my Rect size but no way. I guess I will need to create different texture font sizes to solve this. Thanks anyway