Browse Source

Removed measureText() from examples/text.js

v1.x
Tj Holowaychuk 14 years ago
parent
commit
bb6aefc64d
  1. 4
      examples/text.js

4
examples/text.js

@ -32,8 +32,4 @@ ctx.strokeText("Wahoo", 50, 100);
ctx.fillStyle = '#000';
ctx.fillText("Wahoo", 49, 99);
var te = ctx.measureText('Wahoo');
ctx.strokeStyle = 'red';
ctx.strokeRect(50, 100 - te.height, te.width, te.height);
canvas.savePNG(__dirname + '/text.png');
Loading…
Cancel
Save