You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Obviously, the line height of English is smaller than that of Chinese, which will cause the line spacing to jump or flicker when inputting Chinese. Demo about this:
@Test
fun`line heights`() {
val paragraph = simpleParagraph(
text ="中文\n\nEnglish",
style =TextStyle(fontSize =50.sp)
)
val firstLineHeight = paragraph.getLineHeight(0)
for (i in1 until paragraph.lineCount) {
Truth.assertThat(paragraph.getLineHeight(i)).isEqualTo(firstLineHeight)
}
}
The text was updated successfully, but these errors were encountered:
See screenshot, as the title says:
Obviously, the line height of English is smaller than that of Chinese, which will cause the line spacing to jump or flicker when inputting Chinese. Demo about this:
cl-vs-el.mp4
Related: JetBrains/compose-multiplatform-core#185 & #1781
Maybe we can test it like this:
The text was updated successfully, but these errors were encountered: