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

Jan Skrasek

06/20/2022, 12:50 PM
So I'm updating to Compose 1.2 and using
includeFontPadding = false
and
LineHeightStyle.Align.Center
+
LineHeightStyle.Trim.None
. I observe an issue in TextField - if it is empty, the cursor gets smaller/decreased. This seems to be issue only with my proprietary font - the default font is ok. Anyway how to debug what's wrong? Some font-metric could be off? But why it is present only with empty value? Issue is similar to this fixed one. cc @Siyamed
It seems that the state.layoutResult has different size when empty (height 38) vs non empty (height 44).
I've tried debugging and it seems that StaticLayout returns those different metrics with empty string. Anyway, I've created a reproduction and reported: https://issuetracker.google.com/issues/236615813
🙏 1
2 Views