Author Topic: Italic text  (Read 15826 times)

Wumpee

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 53
    • View Profile
Italic text
« on: February 27, 2013, 05:20:04 AM »
Hi ArenMook,

Is there a simple way that I could add italics support by shifting the top 2 vertices of each character to the right by a set number of pixels, or would that require some major changes?


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Italic text
« Reply #1 on: February 27, 2013, 09:43:06 AM »
Simple? Nope.

Wumpee

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 53
    • View Profile
Re: Italic text
« Reply #2 on: February 27, 2013, 09:34:33 PM »
Hi ArenMook,

I understand that you are probably busy, but we really need to find a way to add Italicised text without having to create 2 separate labels (one with the standard text, and the other with italicised text).

We have tried using the method you outlined for adding Symbols, but your Symbol code doesn't factor in kerning, so the italicised characters are spaced too far apart and look wrong.

Could you please add kerning support for symbols?
« Last Edit: February 27, 2013, 09:45:25 PM by Wumpee »

Wumpee

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 53
    • View Profile
Re: Italic text
« Reply #3 on: February 27, 2013, 10:25:29 PM »
Alternatively, if we could specify the font name in UILabels, then that would be fine also, considering the fonts are on the same atlas.

e.g. [Font="FontA"]Some text followed by [Font="FontB"]some italicized text

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Italic text
« Reply #4 on: February 28, 2013, 08:45:03 AM »
Something like that would be a very big change to the font system, so it's not likely to happen given my day job at Unity and the contract details regarding NGUI.