-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
Part of my code:
var openSansRegular = new Font('openSansRegular', 'data/fonts/Open_Sans/OpenSans-Regular.ttf');
function renderFooter (c, canvasHeight) {
c.fillStyle = "#545454";
c.font = "normal 11px openSansRegular";
c.fillText('MMARocks.pl SINCE 2007 - typermma.pl', 5, canvasHeight - 6);
return false;
}
I then save it like this:
var out = fs.createWriteStream(__dirname + '/../../data/bet-pictures/'+ filename);
var stream = canvas.jpegStream({
bufsize: 4096 // output buffer size in bytes, default: 4096
, quality: 100 // JPEG quality (0-100) default: 75
, progressive: false // true for progressive compression, default: false
});
stream.on('data', function(chunk){
out.write(chunk);
return false;
});
Changing "11px" has literally no effect at all, size seems to default to 10px(or smth) at all times...
Also checked, its broken since 1.2.0.
Regards,
Konrad