@Override
  void drawLayer(Canvas canvas, Matrix parentMatrix, int parentAlpha, @Nullable DropShadow shadowToApply /* ignored for now */) {
    DocumentData documentData = textAnimation.getValue();
    Font font = composition.getFonts().get(documentData.fontName);
    if (font == null) {
      return;
    }
    canvas.save();
    canvas.concat(parentMatrix);

    configurePaint(documentData, parentAlpha, 0);

    if (lottieDrawable.useTextGlyphs()) {
      drawTextWithGlyphs(documentData, parentMatrix, font, canvas, parentAlpha);
    } else {
      drawTextWithFont(documentData, font, canvas, parentAlpha);
    }

    canvas.restore();
  }
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