// TODO: get path while TextPath is set.
@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;
    }
return path;
}
// TODO: get path while TextPath is set.
if (setupFillPaint(paint, 1.0f, getBox(paint, text))) {
applyTextPropertiesToPaint(paint);
@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;
}
// 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;
}