typeface

fun Any?.typeface(typeface: Typeface? = null, family: String? = null, replaceRule: Any? = null)

TypefaceSpan 设置字体样式

Parameters

typeface

字体(API>=28)

family

字体集

replaceRule

组合替换规则 StringReplaceRule