```platformStyle = PlatformTextStyle( includeF...
# compose-android
q
Copy code
platformStyle = PlatformTextStyle(
    includeFontPadding = false
)
'constructor PlatformTextStyle(Boolean = ...)' is deprecated. includeFontPadding was added to Android in order to prevent clipping issues on tall scripts. However that issue has been fixed since Android 28. Compose backports the fix for Android versions prior to Android 28. Therefore the original reason why includeFontPadding was needed is invalid on Compose.This configuration was added for migration of the apps in case some code or design was relying includeFontPadding=true behavior; and will be removed. Any solution how to fix this, couldn’t found the best solution, #compose-android
k
What is the problem that you’re looking to fix?
s
Yeah not sure what your issue is, but it may be covered by reading this https://medium.com/androiddevelopers/fixing-font-padding-in-compose-text-768cd232425b
c
This was undeprecated in latest compose versions. Don't worry about the warning.