Skip to content

How to Decrease Line Spacing in Text #1552

Answered by malliaridis
MetalTurtle18 asked this question in Q&A
Discussion options

You must be logged in to vote

In typography you have the option to set the letterSpacing. I set it directly at the Theme, but you could also do it like below:

Text(
  text = "some text,
  style = MaterialTheme.typography.body1.copy(letterSpacing = 0.sp)
)

Does that solve your problem?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@MetalTurtle18
Comment options

@malliaridis
Comment options

@MetalTurtle18
Comment options

@malliaridis
Comment options

Answer selected by MetalTurtle18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants