Are `firstBaselineToTopHeight` & `lastBaseline...
# compose
z
Are
firstBaselineToTopHeight
 &
lastBaselineToBottomHeight
(TextView attributes) available in Compose?
l
there is a concept of baselines, both top and bottom, but not sure if they will act exactly as those xml ones
t
Have you checked TextLayoutResult? Maybe it provide this values. Text() has an onTextLayout: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/TextLayoutResult
c
Those are not available for
Text
but there is the
paddingFromBaseline
modifier.