canvas.drawText(text, x, y, mPaint); 나

canvas.drawTextOnPath(text, path, x, y, mPaint);

를사용해서 텍스트를 그려줄때

이 텍스트를 감싸는 사각형영역을 구하고싶은데

어떻게하면 될까요?