API 使用方法
你可以通过以下方式引用我们的字体:
{
"fonts": [
{
"name": "Roboto",
"link": "./fonts/Roboto.ttf"
},
{
"name": "Open Sans",
"link": "./fonts/OpenSans.ttf"
},
{
"name": "Lato",
"link": "./fonts/Lato.ttf"
}
]
}
示例代码:
@font-face {
font-family: 'Roboto';
src: url('./fonts/Roboto.ttf') format('truetype');
}
body {
font-family: 'Roboto', sans-serif;
}