Author Topic: Create a new UIFont instructions  (Read 5397 times)

JeHo

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Create a new UIFont instructions
« on: November 02, 2016, 11:53:59 PM »
Hi,

Where would I find the definitive step by step (written not video preferably) instructions to creating a new font to use in UILabels.

So far I been led on a bit of a wild goose chase starting with:
http://www.tasharen.com/?page_id=133 (told me to use BMFont)
passing through:
https://www.youtube.com/watch?v=ni7TfMPWq5M
and ending with:
http://www.tasharen.com/forum/index.php?topic=13970.msg62319#msg62319 (told me not to use BMFont)

Please put a note on that first link saying it is outdated, so others don't start using BMFont for no reason. It's the first hit on google.

I have tested a lot of different ways of getting a new font to show in NGUI, but have only ended up with a completely black font that can't be tinted (dynamic option) or a garbled font with the wrong coordinates (BMFont/texture atlas font/built in generator/everything else).

Also, does drag and drop assignment not work on some of the fields for creating a new font?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Create a new UIFont instructions
« Reply #1 on: November 03, 2016, 08:13:08 AM »
NGUI menu -> Open -> Font Maker

Choose the font, choose the atlas to put the font into (optional), click Create.

Not sure what drag & drop you're asking. If it's dragging into an inspector field, you need to make sure you have the right font specified. "Unity" means an actual trueutype font file. NGUI means a bitmap font created by the Font Maker tool.

JeHo

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: Create a new UIFont instructions
« Reply #2 on: November 03, 2016, 08:47:32 AM »
Thanks for your reply.

It is as simple as you described. It appears the problem I was having was that the UILabel wasn't displaying the font correctly for some reason. I made a new UILabel and it worked but I couldn't get the other one to work, even though I made all the settings identical to the working version.

JeHo

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: Create a new UIFont instructions
« Reply #3 on: November 03, 2016, 08:56:15 AM »
Dragging a font from the project assets window to the font source field in font generator panel doesn't work, nor does clicking the circled dot to the right of the field. Only clicking the source button to the left of the field works. It's not a big deal, I am just used to doing it that way.