I'm currently working on a kotlin multiplatform application targeting Android and iOS. A tester for my app recently reported an issue where if the text size within the device's accessibility settings is modified, it will affect all compose multiplatform Text components. I would like to modify this behavior or disable it altogether.
Defining staticfontSize
within each Text component, however the accessibility settings still seem to override this behavior.
Text(
"This is Some Text",
color = Color.Black,
style = MaterialTheme.typography.h4.copy(
fontFamily = FontFamily.SansSerif,
fontWeight = FontWeight.Bold,
fontSize = 16.sp
)
)