Author Topic: Upgrading bmp fonts to dynamic in Flash  (Read 2031 times)

Whelandrew

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
  • Mostly Harmless
    • View Profile
    • Spellgun Studios
Upgrading bmp fonts to dynamic in Flash
« on: September 27, 2013, 07:04:33 PM »
My company has a Facebook game running that uses nGUI 2.5. I have upgraded to 2.7 and set all of the fonts to dynamic types.

Originally, there was no change to our Flash version of the game, but the fonts worked in our Web Player build.

Looking inside UIFont.cs I found this piece:
  1. #if !UNITY_3_5 && !UNITY_FLASH
  2. #define DYNAMIC_FONT
  3. #endif
  4.  

I removed && !UNITY_FLASH and the dynamic fonts have begun to load. However, I have run into these two issues:
1. The fonts are all suffering from a vertical displacement that draws the words slightly higher than center point.
2. At certain update cycles, the fonts u/v get changed and the fonts look garbled.

I know that Unity is pulling support from Flash. Does nGUI not support dynamic fonts in Flash?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Upgrading bmp fonts to dynamic in Flash
« Reply #1 on: September 27, 2013, 07:06:08 PM »
You can't use dynamic fonts with Flash. It's a Unity limitation. Unless it got ninja-fixed at some point, Unity will fail to compile when building dynamic fonts for Flash.