Author Topic: Is emoticon support for dynamic font?  (Read 4209 times)

newwork01

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Is emoticon support for dynamic font?
« on: May 22, 2016, 09:12:33 PM »
My company currently use NGUI 3 and have to use emoticon in dynamic, is it ready? if not please at least guide me how to make it

newwork01

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: Is emoticon support for dynamic font?
« Reply #1 on: May 23, 2016, 10:57:50 PM »
any help? Can we use another UIAtlas for emoticon (mean another material) to replace character we want in UILabel?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Is emoticon support for dynamic font?
« Reply #2 on: May 24, 2016, 04:08:40 PM »
Emoticons are limited to bitmap fonts because the sprites come from the same atlas as the font's characters. This is what makes it possible to have only one draw call. Dynamic fonts use a separate texture for their character glyphs, so there would need to be two or more separate draw calls / buffer sets per label. Each NGUI widget can only be associated with one material -- just how it was all designed.

The only way to get what emoticons in the dynamic fonts would be to somehow insert sprites as glyphs into the dynamic font itself.

newwork01

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: Is emoticon support for dynamic font?
« Reply #3 on: May 24, 2016, 09:12:06 PM »
And how can we get it out?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Is emoticon support for dynamic font?
« Reply #4 on: May 26, 2016, 11:28:47 AM »
Get what out?