@Override
  public void getBounds(RectF outBounds, Matrix parentMatrix, boolean applyParents) {
    super.getBounds(outBounds, parentMatrix, applyParents);
    // TODO: use the correct text bounds.
    outBounds.set(0, 0, composition.getBounds().width(), composition.getBounds().height());
  }
If this is paragraph text, one line may wrap depending on the size of the document data box.
lottie/src/main/java/com/airbnb/lottie/model/layer/TextLayer.java