Taro weapp字体加载问题
#17213
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
参考 https://docs.taro.zone/docs/apis/ui/fonts/loadFontFace/ 上针对字体加载的方式

以及在App.less上采用@font-face的方式加载字体的ttf文件

在页面效果上字体的效果一直显示不出来,且使用Taro.loadFontFace来加载连complete日志都未被输出。
而在控制台,ttf的query请求在微信开发者工具上也是时有时无的
基础库排查了,是3.7.2;缓存清除过了,字体也有,用的是vx小程序官方提供的一个字体

在h5字体效果是能加载出来的,但是vx小程序中就是不行,想请教下这是一个怎么导致的呢?
Beta Was this translation helpful? Give feedback.
All reactions