Game Development Community

Giving text an outline?

by Matthew Medina · in Torque Game Builder · 01/03/2007 (9:31 pm) · 8 replies

Hi, I was wondering if it's possible to give GUI text an outline. I did the Score and Time Tutorial (http://tdn.garagegames.com/wiki/TGB/MiniTutorials/GUIScoreAndTime), and I want both the part that says "Score:" and the actual score number to have an outline of the text in a different color around them. I know I could probably just make an image for the GUI so that the "Score:" part has the outline, but is there any other way I could do it so that they both have an outline, even if the score is changing?

Thanks
~Matt

#1
01/16/2007 (9:25 pm)
I cheated and created four shadow GUIs that added a shadow effect behind my font... If you find a better solution, let me know because I'm also looking for an answer.
#2
01/17/2007 (1:16 pm)
There is a way to edit fonts and add colors/borders etc to them and then reimport them to TGB. It's a little confusing though. I made a resource to make it more automated. It works for me, but it's not perfect. Hopefully GG has plans to make something like this to help us make cooler looking fonts. I just submitted it here:
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=12093
#3
01/17/2007 (3:56 pm)
Hey Joe, I just tried to download the ZIP, but it said it wasn't available. Can you possibly reupload? Thanks so much for your help!
#4
01/17/2007 (4:02 pm)
That's weird, I can download it from the page with no problems. Try it again, maybe it was down or something before.
#5
01/17/2007 (5:09 pm)
Just checked and it worked!
#6
02/20/2007 (5:27 am)
I just downloaded and it worked. My question is more in terms of postwork. The PNG font file that is produced is 256 greyscale image. Do I need to convert to color to add my effects?
#7
02/20/2007 (2:38 pm)
I just downloaded and it worked. My question is more in terms of postwork. The PNG font file that is produced is 256 greyscale image. Do I need to convert to color to add my effects?
#8
02/20/2007 (6:37 pm)
Yes what I do is convert that texture to RGBA, and make the entire background alpha. Then apply any filters or coloring you want. I use GIMP, but any decent image editor should be able to do this.