Author Topic: Text does not wrap correctly on tablet  (Read 2523 times)

Johanna

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 16
    • View Profile
Text does not wrap correctly on tablet
« on: April 11, 2015, 02:18:05 PM »
I have a problem with the text wrapping - but only on my tablet! I'll post two images which show the problem.

"textbug_01" shows how the text looks in the editor (and also on my smartphone).
"textbug_02" shows how the text looks on my tablet. The words "Totenkopffelsen", "versteckt" and "dem" are cut.

Why are the words not moved to the next line instead? What could be the problem and how can I fix it?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Text does not wrap correctly on tablet
« Reply #1 on: April 12, 2015, 04:38:48 PM »
That doesn't make much sense. What do you use to display the text? Is it just a single label, or is it UITextList? What version of NGUI are you on?

Johanna

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 16
    • View Profile
Re: Text does not wrap correctly on tablet
« Reply #2 on: April 14, 2015, 06:53:38 AM »
I am on the revision 3.8.2 and I am using a label.

I noticed, that I set the label to "Unity" instead of NGUI, so perhaps the problem comes from here. But when I use "NGUI" instead, there are no fonts to select. Is this, because my fonts are all dynamic? What would be the opposite of dynamic fonts?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Text does not wrap correctly on tablet
« Reply #3 on: April 16, 2015, 05:26:37 AM »
The opposite of dynamic would be bitmap fonts, which is what NGUI strongly advises using. That said, I don't believe your issue would be related as bitmap and dynamic font printing all goes through the same part of the code. Is this something you are able to reproduce in a clean project? If so, I would love to have a look.