2D Toolkit Forum

2D Toolkit => Support => Topic started by: kremedved on July 14, 2013, 03:39:17 pm

Title: font outline
Post by: kremedved on July 14, 2013, 03:39:17 pm
Hi! How can I change the color of the outline font, without creating a new font files(*.tga)?
Title: Re: font outline
Post by: unikronsoftware on July 14, 2013, 05:43:11 pm
You can't with the default shader. The outline is stored encoded in the color channel with a black color, and as such its not possible to change it without doing a bit of shader work. Alternatively you can use the crude method of duplicating the text mesh a few times and offsetting in the background to get the illusion of a shadow, but that doesn't look great and overdraws a fair bit.
Title: Re: font outline
Post by: kremedved on July 14, 2013, 06:27:17 pm
Thanks! I think that solution would be the most appropriate one