public float getDensity() {
    return mParams.paint.density;
  }
@return The density of this layout. If unset, defaults to 1.0
library/src/main/java/com/facebook/fbui/textlayoutbuilder/TextLayoutBuilder.java