返回渲染出的字符串长度
measureText度量传入字符串的尺寸
获取文本的宽度
度量文本的用context.measureText(String).width,需要提前确定font状态,目前只能获得宽度不能获得高
ctx.measureText('').width
获取文本宽度