Author Topic: Add Ellipsis to truncated text - Paid  (Read 3867 times)

motionsmith

  • Guest
Add Ellipsis to truncated text - Paid
« on: July 11, 2013, 05:57:47 PM »
We need to display an ellipsis (...) when the text in a UILabel is too long. If you can add this, please let us know how much you'll charge.

Thanks!

tonyM

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 24
    • View Profile
Re: Add Ellipsis to truncated text - Paid
« Reply #1 on: July 22, 2013, 04:46:07 PM »

dodikk

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Re: Add Ellipsis to truncated text - Paid
« Reply #2 on: February 09, 2016, 11:20:44 AM »
How about using an "ellipsis" symbol rather than three "dot" symbols?
http://www.fileformat.info/info/unicode/char/2026/index.htm


>> NGUIText.cs
-  float ellipsisWidth = GetGlyphWidth('.', '.') * 3f;
+ float ellipsisWidth = GetGlyphWidth('…', '…');

- sb.Append("...");
+ sb.Append("…");

Is there any way to contribute such a small patch?
« Last Edit: February 09, 2016, 11:26:50 AM by dodikk »