fontOf

fun fontOf(family: String = "System", weight: FontWeight = FontWeight.NORMAL, posture: FontPosture = FontPosture.REGULAR, size: Int): Font

Composes a font from configuration using Int size.


inline fun fontOf(family: String = "System", weight: FontWeight = FontWeight.NORMAL, posture: FontPosture = FontPosture.REGULAR, size: Double = Font.getDefault().size): Font

Composes a font from configuration using Double size.