public void setTypeface(@NonNull Typeface newTypeface) { final Typeface oldTypeface = baseTextPaint.getTypeface(); if (oldTypeface == newTypeface) { return; } baseTextPaint.setTypeface(newTypeface); textView.setBaseTextPaint(baseTextPaint); }
public void setTextSize(float textSizePxs) { baseTextPaint.setTextSize(textSizePxs); textView.setBaseTextPaint(baseTextPaint); }