新版大屏字体包新增

This commit is contained in:
jhnine 2021-08-30 17:43:11 +08:00
parent c2a5f40d96
commit 9d05dce5fb
6 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,12 @@
module: {
rules: [
{
test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
loader: 'url-loader',
options: {
limit: 10000,
name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
}
}
]
}

View File

@ -31,6 +31,7 @@
"js-cookie": "2.2.0",
"jsonlint": "1.6.3",
"jszip": "3.2.1",
"less-loader": "^6.0.0",
"levenary": "^1.1.1",
"moment": "^2.29.1",
"normalize.css": "7.0.0",
@ -72,6 +73,7 @@
"eslint-plugin-vue": "6.2.2",
"html-webpack-plugin": "3.2.0",
"husky": "^1.3.1",
"less": "^4.1.1",
"lint-staged": "8.1.5",
"mockjs": "1.0.1-beta3",
"plop": "2.3.0",

Binary file not shown.

Binary file not shown.

Binary file not shown.

18
src/common/font/font.css Normal file
View File

@ -0,0 +1,18 @@
@font-face {
font-family: 'DISPLAY FREE TFB'; /* 重命名字体名 */
src: url('DISPLAY FREE TFB.ttf'); /* 引入字体 */
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'PangMenZhengDao'; /* 重命名字体名 */
src: url('PangMenZhengDao.ttf'); /* 引入字体 */
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'SourceHanSansCN'; /* 重命名字体名 */
src: url('SourceHanSansCN.otf'); /* 引入字体 */
font-weight: normal;
font-style: normal;
}