sure can. You will need to scale the canvas first. Try it:
paint.setTextSize(44); int cx = this.getMeasuredWidth() / 2; int cy = this.getMeasuredHeight() / 2; paint.setColor(Color.RED); canvas.drawText("Hello", cx, cy, paint); canvas.save(); canvas.scale(1f, -0.5f, cx, cy); paint.setColor(Color.GRAY); canvas.drawText("Hello", cx, cy, paint); super.onDraw(canvas); canvas.restore();
Try using different values ββfor the Y scale value to get the effect you want.

source share