compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

`TextStyle#textGeometricTransform` is ignored in Desktop target

Open SergeevPavel opened this issue 1 year ago • 1 comments

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

Affected platforms

  • Desktop
  • iOS (@mazunin-v-jb: iOS has this issue too, added here)

Versions

  • Kotlin version*: 1.9.20
  • Compose Multiplatform version*: 1.5.10 (1.5.11 too)
  • OS version(s)* (required for Desktop and iOS issues): Linux
  • OS architecture (x86 or arm64): x86
  • JDK (for desktop issues): 17

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

SergeevPavel avatar Nov 29 '23 15:11 SergeevPavel

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

mazunin-v-jb avatar Nov 29 '23 15:11 mazunin-v-jb

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

okushnikov avatar Jul 14 '24 14:07 okushnikov