toStyleSpan

fun CharSequence.toStyleSpan(style: Int, range: IntRange = IntRange(0, length)): SpannableString

Set the span to a styled one from Typeface

Parameters

style

one of Typeface.NORMAL etc..