- 需求的场景描述(希望解决的问题)
- 希望提供的能力
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 ?
| 框架类型 | 问题类型 | API/组件名称 | 终端类型 | 微信版本 | 基础库版本 |
|---|---|---|---|---|---|
| 小程序 | 需求 | input | 客户端 | 6.7.3 | 2.4.2 |
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
666
six six six
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 .
Input component is native component.The native components include camera,canvas,input,live-player,live-pusher,map,textarea,video.The document in English is not complete.Sorry for that...
Bug & Tip
bug: For WeChat version6.3.30, focus attribute settings are invalid;bug: For WeChat version6.3.30, placeholder encounters a ghosting problem when focusing;tip: The input component is a native component, and the font is a system font, so a font-family cannot be set;tip: When the input is focusing, avoid using css animation;tip: For cases in whichinputis packaged in a custom component andfromis outside of the custom component,formwill not be able to get theinputvalue in this custom component. Under these circumstances, you will need to use the custom component's built-in behaviorswx://form-field.