Questions tagged [line-spacing]

54 questions
313
votes
21 answers

How to control the line spacing in UILabel

Is it possible to reduce the gap between text, when put in multiple lines in a UILabel? We can set the frame, font size and number of lines. I want to reduce the gap between the two lines in that label.
Abhinav
  • 37,684
  • 43
  • 191
  • 309
122
votes
13 answers

How to Increase Line spacing in UILabel in Swift

I have a label which has few lines of text and I want to increase the spacing between the lines. There are similar questions asked by others but the solutions don't solve my problems. Also my label may or may not contain paragraphs. I am new to…
Sneha
  • 2,200
  • 6
  • 22
  • 36
103
votes
10 answers

Set UILabel line spacing

How can I modify the gap between lines (line spacing) in a multiline UILabel?
Matrix
  • 7,477
  • 14
  • 66
  • 97
63
votes
10 answers

Core Text - NSAttributedString line height done right?

I'm completely in the dark with Core Text's line spacing. I'm using NSAttributedString and I specify the following attributes on it: - kCTFontAttributeName - kCTParagraphStyleAttributeName From this the CTFrameSetter gets created and drawn to…
Schoob
  • 1,688
  • 1
  • 14
  • 18
51
votes
2 answers

What's the difference between lineSpacingExtra and lineSpacingMultiplier?

I'm adding line spacing in my textview which spans multiple lines. What's the difference between android:lineSpacingExtra and android:lineSpacingMultiplier? lineSpacingExtra with 2dp worked fine for me but I was wondering what the Multiplier does…
change
  • 662
  • 1
  • 6
  • 11
34
votes
4 answers

Reducing Line Spacing of Text in SwiftUI

For some fonts, the built-in line spacing is unpleasantly large. SwiftUI gives us the Text modifier .lineSpacing() to adjust the spacing between lines of text (also called the leading, unrelated to leading/trailing). Its value specifies the number…
Anton
  • 2,512
  • 2
  • 20
  • 36
10
votes
5 answers

Fix line spacing in custom font in SwiftUI

I am using custom font (Catamaran) and it seems like it has big space between lines in it. For example I have this code: Text("Example text that has big space between lines") .lineSpacing(0) .padding(.horizontal) …
Libor Zapletal
  • 13,752
  • 20
  • 95
  • 182
6
votes
4 answers

How to implement UILabel line spacing using xib?

I want to align a UILabel's text vertically with line spacing via xib in iOS, for example: hello, how are you? Please help me.
IKKA
  • 6,297
  • 7
  • 50
  • 88
5
votes
1 answer

MigraDoc: How to apply vertical line spacing to a paragraph?

I am creating a PDF using MigraDoc. Everything works fine except the setting of line spacing of a paragraph. I want to have more vertical space between paragraph lines. What I tried so far without any change in the resulting PDF: string text =…
Thariama
  • 50,002
  • 13
  • 138
  • 166
5
votes
2 answers

UILabel - How to add space between lines in Swift 3

I've UILabel with paragraphic information (multiline text) and I want add some spaces between lines, similar to this image. Please help me to do it. I've tried to checkout all documentation of apple developer regarding Label and line spacing but…
user7620770
4
votes
2 answers

How control line-spacing of UILabels?

I'm using CustomCell instead of UITableViewCell on UITableView. I put two UILables on CustomCell. Refered this site: here , but I failed... Question : How can I control line spacing of UILabels?
hyekyung
  • 671
  • 2
  • 14
  • 27
4
votes
2 answers

is it possible to set the UILabel distance between the line?

Is it possible to set a UILabel's distance between the line, as i had a UILabel contain 3 lines, and linebreakmode is wordwrap?
ronny
3
votes
0 answers

Set line spacing to 1.15 in R Markdown

In Markdown, after a heading, my knitted document will revert to 1.0 line spacing even though I want it as 1.15. If I add a space after a header (with
), the 1.15 spacing is maintained. If I don't add the
, everything that follows is 1.0…
Mal Vane
  • 75
  • 4
3
votes
0 answers

ProximaNova version upgrade line-height issues

We are using Proxima Nova font version 2.003 before. Now, we are upgrading it to version 3.017 . There is some line-height issue in newer version. In above image the left one is old version (2.003) and right one is new version (3.017). I have…
Karuppiah RK
  • 3,894
  • 9
  • 40
  • 80
3
votes
1 answer

Removing all line spacing from a flextable using flextable and officer packages in R

How do you remove all line spacing in a flextable when creating a flextable using the flextable package and printing it into a powerpoint document using the officer package in R? By default it appears to have line spacing 1.0 with spacing 2 pt…
Jordan Hackett
  • 689
  • 3
  • 11
1
2 3 4