Can I set font in input textbox
发布于 5 年前 作者 jingzou 13161 次浏览 来自 问答
  • 需求的场景描述(希望解决的问题)
  • 希望提供的能力

I try to load fontface to set font style in input component but it does’t change.

The question it , change font to use fontface had allow in miniprogram ?

2 回复

The official API in English did not mention this…

https://developers.weixin.qq.com/miniprogram/dev/api/wx.loadFontFace.html

canvas等原生组件不支持使用接口添加的字体

wx.loadFontFace is invalid when use the native component

The ploblem is , other text in page has to be a font I have loaded by wx.loadFontFace. There is only in Input component not change .

回到顶部