var screen = wx.createCanvas();
var screencontext = screen.getContext('2d');
screencontext.fillStyle = "#ffffff";
screencontext.fillRect(0, 0, screen.width, screen.height);
screencontext.fillStyle = "#ff0000";
screencontext.font = "22px";
screencontext.fillText("sfda", screen.width / 2, screen.height / 2);
小游戏画布无法设置字体大小,上述设置方法无效
这样设置 font 是不对的,去看一下 HTML5 Canvas 的教程 http://www.w3school.com.cn/html5/canvas_font.asp
font属性我也试过,也没有效果
screencontext.fontSize ="22px";font 属性 对应特殊写法去看看文档吧