core-ktx / androidx.content.res / android.content.res.TypedArray / getFontOrThrow

getFontOrThrow

fun TypedArray.getFontOrThrow(@StyleableRes index: Int): Typeface

Retrieve the font value for the attribute at index or throws IllegalArgumentException if not defined.

See Also

TypedArray.hasValue

TypedArray.getFont