Is this the only way to have fixed size text? Have...
# compose
a
Is this the only way to have fixed size text? Haven't found any sort of text unit type which allows this, so double checking here
Copy code
val fontSize = with(LocalDensity.current) { 14.dp.toSp() }
y
Or override the density to font scale of 1.
I think your code is safe, but given non linear font scaling, it makes me worry about those conversions.
a
thanks for sharing. i think you are right 👍