HTML5 Canvas绘图之文字的渲染

文字渲染基础 context.font=”bold 40px Arial” font属性能够接受css的font属性javascript context.fillText(string,x,y,[maxlen]) string指定位置,(x,y)指定位置 context的fillestyle属性设置字体属性 maxlen可选,表示绘制这段文字最长的宽度css window.οnlοad=funct
相关文章
相关标签/搜索