Hello Guest

Author Topic: font outline  (Read 3924 times)

kremedved

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 14
    • View Profile
font outline
« 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)?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: font outline
« Reply #1 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.

kremedved

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: font outline
« Reply #2 on: July 14, 2013, 06:27:17 pm »
Thanks! I think that solution would be the most appropriate one