Author Topic: How do you use the font symbol feature from 2.3.6?  (Read 2717 times)

cmorr

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
How do you use the font symbol feature from 2.3.6?
« on: March 19, 2013, 10:08:33 PM »
So I just updated NGUI and I'm trying to use the new font symbol feature, but it is just breaking for me in various ways.

First try: the symbol appeared, but all the textures / fonts became blurry. I think this may have been NGUI changing the atlas texture filter mode from trilinear to point, but I just reverted rather than screwing with it.

Second try, the symbol did not appear and typing the keycode for it within existing or new labels had no effect. Yes, I saved after adding my symbol to the atlas PNG with the Atlas Maker. Still nothing.

Third try, the keycode now works -- it makes the text disappear, if only in Arimo20 (the text still appears as normal in Arimo18 and Arimo14). But for Arimo20 no symbol actually appears. The text just goes away.

AFAIK, I have followed the exact same steps each time:

  • add the symbol to the atlas with the Atlas Maker tool
  • save (I continue saving after every step)
  • add the symbol to the font prefab using the new tool
  • check the positioning and padding of the symbol

I thought the size of the symbol I'm importing might be related, but it's starting at 20x20 and appears to get resized to 18x16 (cutting off empty space) when adding to the atlas -- I'm trying to add to Arimo20, fwiw. I've also tried using other icons from the atlas, but get the same results.

Attached screenshots of the icon in the Arimo20 prefab's tool.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How do you use the font symbol feature from 2.3.6?
« Reply #1 on: March 19, 2013, 10:15:42 PM »
The new symbol system doesn't limit you to a specific size. You can have size 100 symbols in a size 20 font.

I don't advise you use Arimo20, or any other font created with a previous system. Make your own new font instead.