- Canvas wx.loadFontFace 第三方字体 模拟器可以 真机无效?
// 字体组 fonts:[{img:'../../images/dongfangdakai1.png',url:'url("https://hao.tinymomo.com/public/uploads/dongfangdakai.ttf")', family:'fangdazhengkai'}] //点击加载 wx.loadFontFace({ global: true, family: this.data.fonts[this.data.fontIndex].family, source: this.data.fonts[this.data.fontIndex].url, success(res){ console.log(res) wx.hideLoading() CanvasDrag.changeFamily(that.data.fonts[that.data.fontIndex].family) }, fail(e) { wx.hideLoading() console.log(e) } }) // 版本 2.30.4 3.55 等等都不行 // canvas <canvas id="canvas-label" canvas-id="canvas-label"></canvas> // font设置 font = 'normal normal 18px fangyuanti' this.ctx.font = this.italic + ' ' + this.weight + ' ' + parseInt(this.fontSize) + 'px ' + this.family [图片] 真机加载字体成功 loaded success
09-06 - 求助 急急急急!Canvas loadFanceFace 加载第三方字体?
模拟器可以,镇机无效 字体链接https://hao.tinymomo.com/public/uploads/dongfangdakai.ttf [图片]
09-05 - Canvas ctx.font loadFontFace 第三方字体 模拟器可以,真机无效?
//1 canvas <canvas id="canvas-label" canvas-id="canvas-label"></canvas> //2 字体 url("https://hao.tinymomo.com/public/uploads/dongfangdakai.ttf")', family:'fangdazhengkai' //3 ctx.font italic 斜体 weight fontSize family 第三方字体 this.ctx.font = this.italic + ' ' + this.weight + ' ' + parseInt(this.fontSize) + 'px ' + this.family 模拟器 没有问题 [图片] ios 真机 wx.loadFontFace loaded ok 但是字体就是没有变化 this.ctx.font = "notmal normal 18px xxxxxx" [图片]
09-01 - openStickerSetView 跳转不了
微信表情 openStickerSetView 跳转不了 [图片][图片]
2023-09-06