- Home /
Why does the font selected for my GUI Skin not display correctly?
I'm trying my hand at a custom GUI Skin, specifically for some buttons that I want displayed. My font of choice should look something like this.
Instead, it looks like this.
Can anyone tell me what's going on? The font I used can be downloaded here.
I'm using Unity 3.4.2f2 on Mac OSX 10.6.8.
UPDATE:
Okay, I was looking at the generated texture for the font and it was showing the same font I was receiving (the one in the second example). So I removed and re-aded the font, this time with Unicode. Now the font is there in the texture but now the buttons have no font at all. No text to be seen. Even when trying to make a 3D Text object I am having the exact same problems.
The font works in all other programs I've tried. However, other custom fonts also work fine in Unity.
I'm still no closer to understanding why this particular font doesn't work. =\
Does anyone have any ideas? I tried updating and that didn't help either. =\
$$anonymous$$ight be because your font is missing some characters.
Answer by antx · Nov 03, 2011 at 09:45 AM
Can other applications handle the font? (to make sure that there is nothing wrong with the font itself) Try a little test scene with just a GUI Text in it and assign the font to that text, to see if it works there. (I just downloaded the font and tested this on Windows and it works perfectly.)
If that works, then I guess you most likely assigned the font in your skin in the wrong place or your gui is not using the skin yet.
It works great in Photoshop (thus the image examples) and the GUI did change font, it just changed to a thicker Arial ins$$anonymous$$d of the new font.
As for where I assigned it:
All of my other fonts have an icon of Ag and this one has the icon of 01. Is that relevant?
Your answer
Follow this Question
Related Questions
Is there a way to measure the pixel with/height of a string with a given font? 2 Answers
GUI Skin Layout Issues 0 Answers
GUI skin font problem 1 Answer
Skins Missing Textures 1 Answer
Possible to change GUI.Label fontsize without using GUIStyle? 1 Answer