```platformStyle = PlatformTextStyle( includeF...
# compose
c
Copy code
platformStyle = PlatformTextStyle(
    includeFontPadding = false
)
PlatformTextStyle is deprecated, but I can't seem to find what I should move to. ideas?
e
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
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
`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
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.
174 Views