Marcin Wisniowski
01/22/2022, 7:08 PMText with a specific size in pixels? It seems you can only specify the size in sp and em.Filip Wiesner
01/22/2022, 7:37 PMSp with `Density`:
val density = LocalDensity.current
val spFromPx = with(density) { 12.toSp() }
But be aware that the SP unit exists for a reason and the Text composable does not take pixels intentionally.Marcin Wisniowski
01/22/2022, 7:41 PM