CustomTypefaceSpan

open class CustomTypefaceSpan : TypefaceSpan

支持以 Typeface 的方式设置 span 的字体,实现自定义字体的效果

Constructors

CustomTypefaceSpan
Link copied to clipboard
open fun CustomTypefaceSpan(family: String, @Nullable() type: Typeface)
Typeface 字体的字体名

Functions

updateDrawState
Link copied to clipboard
open fun updateDrawState(ds: TextPaint)
updateMeasureState
Link copied to clipboard
open fun updateMeasureState(paint: TextPaint)

Properties

CREATOR
Link copied to clipboard
val CREATOR: Parcelable.Creator<CustomTypefaceSpan>