@Override
    protected Path getPath(Canvas canvas, Paint paint) {
        Path path = new Path();
        String text = formatText();
        if (text == null) {
            return path;
        }
        // TODO: get path while TextPath is set.
        if (setupFillPaint(paint, 1.0f, getBox(paint, text))) {
            applyTextPropertiesToPaint(paint);
            paint.getTextPath(text, 0, text.length(), 0, -paint.ascent(), path);
            path.transform(mMatrix);
        }
        return path;
    }
@Override
    protected Path getPath(Canvas canvas, Paint paint) {
        Path path = new Path();
        String text = formatText();
        if (text == null) {
            return path;
        }
       
        if (setupFillPaint(paint, 1.0f, getBox(paint, text))) {
            applyTextPropertiesToPaint(paint);
            paint.getTextPath(text, 0, text.length(), 0, -paint.ascent(), path);
            path.transform(mMatrix);
        }
        return path;
    }
@override protected path getpath(canvas canvas, paint paint) { path path = new path(); string text = formattext(); if (text == null) { return path; } if (setupfillpaint(paint, 1.0f, getbox(paint, text))) { applytextpropertiestopaint(paint); paint.gettextpath(text, 0, text.length(), 0, -paint.ascent(), path); path.transform(mmatrix); } return path; }