public TextLayoutBuilder setTypeface(@Nullable Typeface typeface) {
    if (mParams.paint.getTypeface() != typeface) {
      mParams.createNewPaintIfNeeded();
      mParams.paint.setTypeface(typeface);
      mSavedLayout = null;
    }
    return this;
  }
Sets the typeface used by this TextLayoutBuilder.

@param typeface The typeface for this TextLayoutBuilder
@return This {@link TextLayoutBuilder} instance
library/src/main/java/com/facebook/fbui/textlayoutbuilder/TextLayoutBuilder.java