2D Toolkit Forum

2D Toolkit => Support => Topic started by: tom123 on March 22, 2014, 03:24:36 pm

Title: Tk2dTextMesh: change font size for part of the text
Post by: tom123 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?
Title: Re: Tk2dTextMesh: change font size for part of the text
Post by: unikronsoftware 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
Title: Re: Tk2dTextMesh: change font size for part of the text
Post by: tom123 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.