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