Cannot set canvas width and change font at the same time?

前端 未结 0 596
情深已故
情深已故 2021-01-07 02:25

http://jsfiddle.net/sLk72mud/

Inn the jsfiddle, the call to measureText that sets the canvas width:

tCtx.canvas.width = tCtx.measureText(this.value).wi         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题