Vineet Rathee
11/06/2025, 1:34 PM@Composable
fun B3TextStyle() = TextStyle(
fontFamily = proximaNovaFontFamily(),
fontWeight = FontWeight.Normal,
fontSize = DimenFont.nonScalingSp(DimenFont.font_14dp),
color = Colors.color_222222,
lineHeight = DimenFont.nonScalingSp(DimenFont.font_20dp)
)
However, the text looks compressed and narrower on Compose Multiplatform.
Has anyone else faced this issue before? Any suggestions on how to fix or match it with the native appearance?Jack Boswell
11/06/2025, 1:52 PMVineet Rathee
11/06/2025, 2:21 PM@Composable
fun nonScalingSp(value: Int): TextUnit {
val density = LocalDensity.current
return (value / density.fontScale).sp
}
yes it is happening without this non scaling sp also ,
can anyone suggest me a wayVineet Rathee
11/06/2025, 3:15 PMKirill Grouchnikov
11/06/2025, 4:34 PMJack Boswell
11/06/2025, 11:35 PMVineet Rathee
11/07/2025, 7:04 AMVineet Rathee
11/07/2025, 7:05 AMbishiboosh
11/07/2025, 7:14 AMKirill Grouchnikov
11/10/2025, 2:31 PMVineet Rathee
11/12/2025, 7:52 AMKirill Grouchnikov
11/12/2025, 4:21 PMVineet Rathee
11/13/2025, 11:36 AM