Open igordmn opened 3 years ago
Here we add support for BaselineShift. It works with this:
import androidx.compose.material.Text
import androidx.compose.ui.text.SpanStyle
import androidx.compose.ui.text.buildAnnotatedString
import androidx.compose.ui.text.style.BaselineShift
import androidx.compose.ui.text.withStyle
import androidx.compose.ui.window.singleWindowApplication
fun main() = singleWindowApplication {
Text(
buildAnnotatedString {
append("Line0\n")
append("Line1")
withStyle(SpanStyle(baselineShift = BaselineShift(1f))) {
append("Line2\n")
}
append("Line3\n")
append("Line4\n")
}
)
}
But still doesn't work with the example from the issue.
Reported to Skia, see #12722
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
Compose 1.0.0-alpha3, Windows 10
Android:
Desktop: