code: public static void setUpTypeface(@NonNull TextView textView, @NonNull Typeface typeface) {
          textView.setPaintFlags(textView.getPaintFlags() | Paint.ANTI_ALIAS_FLAG | Paint.SUBPIXEL_TEXT_FLAG);
          textView.setTypeface(typeface);
      }
docs: Set up typeface for TextView. Wrapper over {@link TextView#setTypeface(Typeface)}
  for making the font anti-aliased.
  
  @param textView The text view
  @param typeface The specify typeface