Ugly Text Appearance on a GUI

Started by xenogia, Fri 22/01/2010 23:18:07

Previous topic - Next topic

xenogia

I have created a GUI that is a notebook that appears on the screen at certain points.  In that GUI I have label element where I can put text.  But I have noticed that the font always looks ugly no matter which one I choose.  It doesn't anti-alias or anything, have a look. Am I doing something wrong?


Crimson Wizard

I believe it may be caused by Outlining.
Try to disable Outline for the font you are using there.

....unless I am mistaken  ::)

monkey0506

#2
If you look in some places that font is only 1px thick, so I highly doubt it's automatic outlining causing the problem.

What type of font are you importing? I presume it's TTF?

What point-size is it?

Is the setting "Anti-alias TTF fonts" set to "True" or "False"? I believe it is false by default.

...and...I'm not 100% sure but it's possible that labels don't support anti-aliased fonts. I know that LA-style speech doesn't. If that's the case then DrawingSurfaces do so you could use one of those if needed (noting that you would have to draw onto a copy of whatever background would be showing behind the text or else you would get a pink outline).

And I'm guessing that your game resolution is 640x400 scaled up 2x (based on the image given)?

xenogia

I eventually figured it out, if the image is has an alpha channel it screws up the font.  The whole image had a transparency over the top when I loaded it up in GIMP.  Not sure how that happened.  But I resolved the issue.  Thanks anyway :)

Ryan Timothy B

So, do Anti-alias TTF fonts actually work in a textbox?

Calin Leafshade

They do, but only if the gui has a block colour background. It doesnt work over images.. at least not images with alpha channels.. i havent tried it with flat images.

SMF spam blocked by CleanTalk