getFontByAttr

fun Context.getFontByAttr(@AttrRes attrRes: Int): Typeface

Returns the font that the given attrRes refers to.

Throws

if the given attribute cannot be found.