You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CanvasRenderingContext2d.restore() does not restore font weight.
Steps to Reproduce
varCanvas=require('canvas');varcanvas=Canvas.createCanvas(200,200);varctx=canvas.getContext('2d');ctx.font='normal 16px sans-serif';ctx.save():
ctx.font='bold 16px sans-serif';ctx.restore();ctx.font==='bold 16px sans-serif'// should be 'normal 16px sans-serif' now
I'm not able to reproduce this is in the browser. In fact, it seems like "bold" is always stripped 🤔
varcanvas=document.createElement('canvas')varctx=canvas.getContext('2d')ctx.font='16px sans-serif'console.log(ctx.font,'should be "16px sans-serif"')ctx.save()ctx.font='bold 16px sans-serif'console.log(ctx.font,'should be "bold 16px sans-serif"')ctx.restore()console.log(ctx.font,'should be "16px sans-serif"')
Issue
CanvasRenderingContext2d.restore() does not restore font weight.
Steps to Reproduce
Your Environment
The text was updated successfully, but these errors were encountered: