LineHeightSpan
Kotlin
|Java
class LineHeightSpan : LineHeightSpan
kotlin.Any | |
↳ | androidx.compose.ui.text.android.style.LineHeightSpan |
The span which modifies the height of the covered paragraphs. A paragraph is defined as a segment of string divided by '\n' character. To make sure the span work as expected, the boundary of this span should align with paragraph boundary.
Summary
Public methods | |
---|---|
Unit |
chooseHeight(text: CharSequence, start: Int, end: Int, spanstartVertical: Int, lineHeight: Int, fontMetricsInt: FontMetricsInt) |
Properties | |
---|---|
Int |
The specified line height in pixel unit, which is the space between the baseline of adjacent lines. |
Public methods
chooseHeight
fun chooseHeight(
text: CharSequence,
start: Int,
end: Int,
spanstartVertical: Int,
lineHeight: Int,
fontMetricsInt: FontMetricsInt
): Unit
Properties
lineHeight
val lineHeight: Int
The specified line height in pixel unit, which is the space between the baseline of adjacent lines.