LearnBoost/node-canvas — Issue #136: Memory leak in FillText
Author: jimlears
Created: 2011-12-13 17:55:41+00:00
State: open

(commented on issue #135 in reference to the Context2d leaks that are also in here)

canvas = new Canvas(500, 500);
ctx = canvas.getContext('2d');
ctx.textAlign = "center";
ctx.textBaseline = "middle";
ctx.fillStyle = '#ebebeb';
ctx.font = "32px 'Gotham Black'";
ctx.shadowColor = "#333";
ctx.shadowColor = "#252525";
ctx.shadowOffsetX = 0.1;
ctx.shadowOffsetY = -1;
ctx.shadowBlur = 0;
ctx.fillText("hello world", 10, 10);

![ss](http://i44.tinypic.com/w3h36.png "ss")