LineBreakMeasurer lbm = new LineBreakMeasurer(aci, fontRenderContext);
int contentWidth = width - (padding.left + padding.right);
while (lbm.getPosition() < aci.getEndIndex()) {
TextLayout textLayout = lbm.nextLayout(contentWidth);
y += textLayout.getAscent();
drawText(graphics, textLayout, y);
y += textLayout.getDescent() + textLayout.getLeading();
}
} else {