Problem with unity 3 font

after i changed to unity 3 i noticed my fonts are looking very ugly when they come from a OnGUI() script.

393840--13519--$UnityFontProblem.jpg

I’m also having problems. It appears that the fonts aren’t rendered anti-alliased. Anyone know why that would be?

OK I fixed my problem. I was doing this:

Color newColor = new Color(r,g,b,a);
headerStyle.normal.textColor = this.newColor;

where a,b,c,d are floats between 0 1.

If I change my code to this:

Color newColor = new Color(r,g,b);
headerStyle.normal.textColor = this.newColor;

eg. remove the alpha from the color contructor, the font is anti-aliased correctly.

Weird. Any one got any idea why this might be? I’m happy now it’s working but it means I can’t alpha the fonts now.

regards,

Tony Oakden

your hardware / driver potentially just does not support alpha AA or you have a shader / run in a mode where AA isn’t triggering in at all anymore due to it.