Author Topic: Embedded font for UILabel.trueTypeFont  (Read 3843 times)

Rednaxela

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
    • View Profile
Embedded font for UILabel.trueTypeFont
« on: February 28, 2014, 12:05:29 PM »
Hello!
Please suggest how to to set embedded trueTypeFont for UILabel in code?
Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Embedded font for UILabel.trueTypeFont
« Reply #1 on: February 28, 2014, 05:59:21 PM »
UILabel.ambigiousFont = yourFont;

Rednaxela

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
    • View Profile
Re: Embedded font for UILabel.trueTypeFont
« Reply #2 on: March 03, 2014, 03:32:22 AM »
Thanks for the reply!
But I meant how can I set exactly embedded font (in case of Windows it's Arial)?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Embedded font for UILabel.trueTypeFont
« Reply #3 on: March 04, 2014, 12:55:16 AM »
Oh, that. Unity has Arial font present at all times. It shows up when you do a resources check, but it may not be there when you do a build. It's excluded from certain Windows 8 platforms for example. It's best not to use it for anything other than testing purposes.