Author Topic: Shadow and outline effects possible on dynamic fonts?  (Read 8475 times)

mishaps

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 65
    • View Profile
Shadow and outline effects possible on dynamic fonts?
« on: June 19, 2014, 07:08:23 PM »
art direction is text with black outline and black shadow. Seems UILabel can only do one or the other.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Shadow and outline effects possible on dynamic fonts?
« Reply #1 on: June 19, 2014, 07:22:14 PM »
You can modify bitmap fonts to have more than just outline and shadow effects. You can add a slight bevel, glow, or even add a border around characters so that you can then modify them in Photoshop to add any effect you like. Create a bitmap font then select the font prefab to see the built-in options.

Dynamic fonts are too limiting and this won't be possible. Also note that in order to draw an outline effect without modifying the font's texture you need to draw the text 5 times. That's a lot of extra geometry. Shadow -- draw it twice (once for shadow and once for the foreground). So shadow + outline would be drawing the text 6 times. Bitmap font modification approach involves drawing the text only once. Far more efficient.

mishaps

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 65
    • View Profile
Re: Shadow and outline effects possible on dynamic fonts?
« Reply #2 on: June 19, 2014, 07:52:04 PM »
ok. thanks for the info.

Does the Generate Bitmap option in Font Maker work on mac? It said error FreeType.dylib is missing so I clicked the button and located it inside the NGUI folder in my project but nothing happened, it still says error.

mishaps

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 65
    • View Profile
Re: Shadow and outline effects possible on dynamic fonts?
« Reply #3 on: June 20, 2014, 05:56:11 AM »
yea looks like font maker is broken

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Shadow and outline effects possible on dynamic fonts?
« Reply #4 on: June 21, 2014, 02:33:41 PM »
Search this forum for "FreeType.dylib". I've mentioned a few times that you can fix it by copying the free type library to /usr/local/lib manually. NGUI tries to do it for you, but may be stopped by your permission settings.