Hello Guest

Author Topic: Tk2dTextMesh - Word Wrap not working  (Read 8168 times)

haxx0rz

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 5
    • View Profile
Tk2dTextMesh - Word Wrap not working
« on: February 05, 2013, 07:00:08 pm »
I can't make my tk2dTextMesh word wrap work in Unity. I have already set it as small as 3 in the editor window, and it still never wraps itself. I do notice an arrow on the scene, but whenever I pull it, it disappears, and the Word Wrap disables itself.

How do I fix this problem?

And I see this link is being posted for help, problem is, it is broken.
http://unikronsoftware.com/2dtoolkit/forum/index.php?action=dlattach;topic=131.0;attach=302

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Tk2dTextMesh - Word Wrap not working
« Reply #1 on: February 05, 2013, 07:05:17 pm »
What font are you using? Is it a new font you created or one distributed with the toolkit?
What version of tk2d are you using?

The link is in the private support forum - you will need to register your copy to get access. Details here:
http://unikronsoftware.com/2dtoolkit/forum/index.php/topic,34.0.html

haxx0rz

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Tk2dTextMesh - Word Wrap not working
« Reply #2 on: February 05, 2013, 07:21:42 pm »
I am using the default font included in the tk2d Test Assets (name is GradientFont).

As for the version, I am using Version 1.8 final + patch 3.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Tk2dTextMesh - Word Wrap not working
« Reply #3 on: February 05, 2013, 08:02:27 pm »
Looks like you've uncovered a bug - or rather an asset which hasn't been updated in a while. To fix it, select the Gradient Font object in Unity (TK2DROOT/tk2d_demo/demogradientfont/GradientFont), and click Commit.
The wrapping should work correctly now.

It will work correctly if you create a new font.


I've fixed the built in asset for the next version.

haxx0rz

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Tk2dTextMesh - Word Wrap not working
« Reply #4 on: February 06, 2013, 11:25:41 am »
Alright thanks, it works well now :)

fsadeq

  • 2D Toolkit
  • Sr. Member
  • *
  • Posts: 353
    • View Profile
Re: Tk2dTextMesh - Word Wrap not working
« Reply #5 on: January 13, 2014, 07:39:04 pm »
I am using the latest version, and have this same bug going on as well. Super weird - word wrap has no effect, and dragging the white arrow just disappears..

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Tk2dTextMesh - Word Wrap not working
« Reply #6 on: January 14, 2014, 10:41:36 am »
The same gradient font? Have you tried committing the font?

fsadeq

  • 2D Toolkit
  • Sr. Member
  • *
  • Posts: 353
    • View Profile
Re: Tk2dTextMesh - Word Wrap not working
« Reply #7 on: January 14, 2014, 05:35:03 pm »
No, a different font I made before. This is an older project that was using a previous version of 2dTK. I upgraded the framework and the word wrap doesn't work now.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Tk2dTextMesh - Word Wrap not working
« Reply #8 on: January 14, 2014, 05:49:08 pm »
Have you committed the font with the latest version ? If it still doesn't work, can you send me a simple repro project please?

fsadeq

  • 2D Toolkit
  • Sr. Member
  • *
  • Posts: 353
    • View Profile
Re: Tk2dTextMesh - Word Wrap not working
« Reply #9 on: January 14, 2014, 05:57:13 pm »
Can't believe I didn't even try that. Works fine now, thanks!

fsadeq

  • 2D Toolkit
  • Sr. Member
  • *
  • Posts: 353
    • View Profile
Re: Tk2dTextMesh - Word Wrap not working
« Reply #10 on: February 21, 2014, 08:04:44 pm »
This bug cropped up again - I did nothing out of the ordinary. All I did was switch the font to a new font that I added, and now the word wrap doesn't work at all (and disappears when I try grabbing the handle). I'm using the latest version of 2dTK and Unity.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Tk2dTextMesh - Word Wrap not working
« Reply #11 on: February 22, 2014, 12:42:42 pm »
Hey, can you get me a repro for this? I haven't seen or heard of any recent issues with this.