1. Download (.ttf) and put it into the project
1.1 Website search and download the ttf file corresponding to the font
Attached is a website for downloading fonts:
Font World - provides free download and online preview services of various fonts
1.2 Place the downloaded file into the static/font directory
2. Reference in app.vue
@font-face {
font-family: 'zitiming';
src: url('/static/font/YouSheBiaoTiHei-2.ttf');
}
3.Use:
font-family:zitiming