views:

62

answers:

0

I am drawing a text in canvas. Its working fine in all other browsers but in ipad safari, its drawing text outside the canvas area and the text is flipped too.

context.font = "14px Arial";
context.fillStyle = "#000000";
context.textAlign = "center";
context.fillText('text', 20, 20,300);
context.stroke();
context.closePath();