将UI给的字体包下载到assets文件夹下
![在这里插入图片描述](https://img-blog.csdnimg.cn/direct/b4f48aefa5e64cc6898d35d25e2d7725.png)
app.vue全局定义
<style>
* {
margin: 0;
padding: 0;
}
@font-face {
font-family: 'PangMenZhengDao-3';
src: url('@/assets/fonts/庞门正道标题体3.0.TTF') format('truetype');
font-weight: bold;
font-style: normal;
}
</style>
页面使用
font-family: PangMenZhengDao-3,;