Author Topic: UILabel: Multiple fonts in one UILabel  (Read 3191 times)

claus

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
UILabel: Multiple fonts in one UILabel
« on: September 12, 2014, 08:24:28 AM »
Hello,

is it possible to have different/multiple fonts (ie. font faces) in one UILabel?
Would it be possible to implement it into NGUI (eg. using bbcode) or inherit from UILabel to implement this?
What would be the best practice to implement a feature like this (Using multiple Labels seems a bit of an overkill if the text is changed dynamically or frequently during runtime)?
This would be really nice to have. I am very happy about any suggestions. Has anybody done this yet?

Kind regards, claus

lamiumthetanker

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: UILabel: Multiple fonts in one UILabel
« Reply #1 on: September 12, 2014, 08:58:14 AM »
I was planning to have this in a pet project but I was simply going to make a prefab split up into 2 UILabel's and have the two fonts feature in the same text. At least that's the way I was planning to approach it, not got there yet on my pet project, I'll be sure to update this when I do.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UILabel: Multiple fonts in one UILabel
« Reply #2 on: September 13, 2014, 03:23:39 AM »
No, you can only have one font per label.