https://kotlinlang.org logo
#compose
Title
# compose
c

Colton Idle

02/23/2023, 4:01 AM
Copy code
platformStyle = PlatformTextStyle(
    includeFontPadding = false
)
PlatformTextStyle is deprecated, but I can't seem to find what I should move to. ideas?
e

ephemient

02/23/2023, 4:14 AM
https://medium.com/androiddevelopers/fixing-font-padding-in-compose-text-768cd232425b it's going away in the future (although I don't think the default has been flipped yet)
c

Colton Idle

02/23/2023, 4:41 AM
Yeah, that's actually where I grabbed it from 😄 I guess the warning in AS got me a bit worried that I should be using something else? Seems like deprecating without a replacement is kinda weird?
e

ephemient

02/23/2023, 4:43 AM
`LineHeightStyle.Trim.None`/`LineHeightStyle.Trim.Both` will be the closest analogues, I think
in the future when
includeFontPadding = false
by default, which isn't yet
c

Colton Idle

02/23/2023, 4:45 AM
the blog post made it seem like i should be using ^ and includeFontPadding=false But anyway. looks like it wasn't just some oversight of some new api by me. i guess ill wait for them to flip that switch.
162 Views