void createNewPaintIfNeeded() {
      // Once after build() is called, it is not safe to set properties
      // on the paint as we cache the text layouts.
      // Hence we create a new paint object,
      // if we ever change one of the paint's properties.
      if (mForceNewPaint) {
        TextPaint newPaint = new TextPaint(paint);
        newPaint.set(paint);
        paint = newPaint;
        mForceNewPaint = false;
      }
    }
Create a new paint after the builder builds for the first time.
library/src/main/java/com/facebook/fbui/textlayoutbuilder/TextLayoutBuilder.java