public TextLayoutBuilder setTextSize(int size) {
    if (mParams.paint.getTextSize() != size) {
      mParams.createNewPaintIfNeeded();
      mParams.paint.setTextSize(size);
      mSavedLayout = null;
    }
    return this;
  }
Sets the text size for the layout.

@param size The text size in pixels
@return This {@link TextLayoutBuilder} instance
library/src/main/java/com/facebook/fbui/textlayoutbuilder/TextLayoutBuilder.java