textAdvance

fun textAdvance(text: String, fontFamily: String?, fontWeight: String?, fontStyle: String?, fontSize: Double): Double(source)

The advance of text at fontSize in user units, as <text> lays it out: in the standard-font metrics for the family, weight and style that font-family, font-weight and font-style name.