JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
15.33k stars 1.11k forks source link

`TextStyle#textGeometricTransform` is ignored in Desktop target #3990

Open SergeevPavel opened 7 months ago

SergeevPavel commented 7 months ago

Describe the bug TextStyle#textGeometricTransform is ignored in Desktop target.

Affected platforms

Versions

To Reproduce Draw the following view:

            BasicText(
                text = "Jetpack Compose",
                style = TextStyle(
                    color = Color.Green,
                    fontSize = 24.sp,
                    fontFamily = FontFamily.Monospace,
                    letterSpacing = 4.sp,
                    textAlign = TextAlign.Center,
                    shadow = Shadow(
                        color = Color.Black,
                        offset = Offset(8f, 8f),
                        blurRadius = 4f
                    ),
                    textGeometricTransform = TextGeometricTransform(
                        scaleX = 2.5f,
                        skewX = 1f
                    )
                ),
                modifier = Modifier.width(300.dp)
            )

Expected behavior Should look the same on Android and on Desktop

Screenshots image image

mazunin-v-jb commented 7 months ago

Thank you for submitting the issue! We will take a look.