public TextLayoutBuilder setDensity(float density) {
    if (mParams.paint.density != density) {
      mParams.createNewPaintIfNeeded();
      mParams.paint.density = density;
      mSavedLayout = null;
    }
    return this;
  }
Sets the density of this layout. This should typically be set to your current display's density

@param density The density desired
@return This {@link TextLayoutBuilder}
library/src/main/java/com/facebook/fbui/textlayoutbuilder/TextLayoutBuilder.java