Hello Guest

Author Topic: Tk2dTextMesh: change font size for part of the text  (Read 3773 times)

tom123

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 9
    • View Profile
Tk2dTextMesh: change font size for part of the text
« on: March 22, 2014, 03:24:36 pm »
I have one Tk2dTextMesh (would prefer to keep it as one), and I want part of the text smaller than the other part.
For example until 10th character in one size, and from 11th character in another size.

Is there a straightforward way to do that?
If not, what would be the recommended way to go if I don't want to have two Tk2dTextmeshes?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Tk2dTextMesh: change font size for part of the text
« Reply #1 on: March 23, 2014, 10:52:20 am »
That isn't supported right now. You'll have to use 2 text meshes. Its been on the roadmap trello for a while, but not many have voted for it. https://trello.com/c/9ULNhSFB/50-multiple-font-switching-support-in-tk2dtextmesh

tom123

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Tk2dTextMesh: change font size for part of the text
« Reply #2 on: March 23, 2014, 04:31:54 pm »
Thanks for the info.
I ended up still using one text mesh, but scaling the vertices manually.