jiangchengfeiyi-xiaochengxu/common/setFonts.js

7 lines
219 B
JavaScript
Raw Normal View History

export const loadFontFaceFromLocal =()=> {
uni.loadFontFace({
family: 'ZhongShanFonts',
source: `url("${'https://carbon2.obs.cn-north-4.myhuaweicloud.com/fonts/ZhongShanFonts.ttf'}")`
})
console.log('success');
}