Use new padding in TextPainter.
Fixed maybeBreakLines() logic to utilize TextPainter.