setTypeface

open fun setTypeface(typeface: Typeface)

Sets the typeface and style in which the text should be displayed.

Parameters

typeface

This value may be null.


open fun setTypeface(tf: Typeface?, style: Int)

Sets the typeface and style in which the text should be displayed, and turns on the fake bold and italic bits in the Paint if the Typeface that you provided does not have all the bits in the style that you specified.

Parameters

tf

This value may be null.

style

Value is Typeface.NORMAL, Typeface.BOLD, Typeface.ITALIC, or Typeface.BOLD_ITALIC