Author Topic: UILabel Line Spacing?  (Read 11328 times)

ENAY

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 248
    • View Profile
UILabel Line Spacing?
« on: September 03, 2012, 11:38:06 PM »
Is there anywhere to adjust vertical line spacing?
If I have UILabel, the text string when it goes onto the next line, it is a quite a big step in most cases. Presumably the line spacing is determined by the maximum height of the biggest height character.

Is there anyway to adjust this? Up till now I have been positioning 2 or 3 UILabels close together to get around this issue. But I am beginning to wonder if there is a better way?

dlewis

  • Guest
Re: UILabel Line Spacing?
« Reply #1 on: September 03, 2012, 11:56:52 PM »
I believe I saw this asked before and I think it comes from the front itself. You'll have to wait for confirmation on that though.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UILabel Line Spacing?
« Reply #2 on: September 04, 2012, 12:58:30 AM »
Yup, it's set on the font.

ENAY

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 248
    • View Profile
Re: UILabel Line Spacing?
« Reply #3 on: September 04, 2012, 01:10:22 AM »
You mean that I can adjust the spacing in the Inspector somewhere? Not entirely sure where that is, but what it sounds like is adjusting the global setting for the font spacing.

If I do that it will change the line spacing in all areas of my program for that particular font though.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UILabel Line Spacing?
« Reply #4 on: September 04, 2012, 03:46:34 AM »
It affects all labels using the font. Spacing values, specified on the font.

ENAY

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 248
    • View Profile
Re: UILabel Line Spacing?
« Reply #5 on: September 04, 2012, 04:12:53 AM »
I see, well that's a shame.

Would have been cool to be able to specify the Line Width, Line Count and then the "Spacing Height" (in world coordinate pixels) affecting only that particular UILabel.
A positive number increases the distance between the next line of text and then a negative number reduces the distance between the next line of text. Then I would be able to put in "Spacing Height : -3"

helioxfilm

  • Guest
Re: UILabel Line Spacing?
« Reply #6 on: January 27, 2013, 01:26:52 PM »
Are you considering to make this option and character spacing to UILabel? That would be great... I hope it is possible...

g2mediagroup

  • Guest
Re: UILabel Line Spacing?
« Reply #7 on: December 20, 2013, 02:11:49 PM »
Any chance of this becoming an implementation...this would definitely make font handling easier by far...

Thanks! :)

KyleStaves

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 13
    • View Profile
Re: UILabel Line Spacing?
« Reply #8 on: December 20, 2013, 03:04:10 PM »
I actually came to make the exact same request (UILabel line spacing support for Dynamic Fonts) and this is the top post on the forum. Just wanted to add my voice to the list of people who would really appreciate this feature!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UILabel Line Spacing?
« Reply #9 on: December 21, 2013, 02:26:27 AM »
Eh? This was added a long time ago. All labels have individual character spacing -- both horizontal and vertical.