This may also extend to other density related values.
// Initial value
// ctx.font = 'normal normal normal 10px sans-serif';
canvas.setDensity(2);
// Correct
// ctx.font = 'normal normal normal 20px sans-serif';
canvas
.clearCanvas();
// Incorrect
// ctx.font = '10px sans-serif';
canvas
.clearCanvas()
.setDensity(2);
// Correct
// ctx.font = 'normal normal normal 20px sans-serif';
Rather than requiring the density to be manually set, this should be handled in the clearCanvas method.
This may also extend to other density related values.
Rather than requiring the density to be manually set, this should be handled in the
clearCanvas
method.