张含笑
2025-10-23 66a9238cca115b1c49d57216a673be2a58456661
feat:添加字体
1 files modified
4 files added
45 ■■■■■ changed files
src/main.js 2 ●●● patch | view | raw | blame | history
src/static/fonts/SourceHanSansCN-Bold.woff2 patch | view | raw | blame | history
src/static/fonts/SourceHanSansCN-Regular.woff2 patch | view | raw | blame | history
src/static/fonts/YouSheBiaoTiHei.TTF patch | view | raw | blame | history
src/static/fonts/font.css 43 ●●●●● patch | view | raw | blame | history
src/main.js
@@ -14,7 +14,7 @@
// 引入UnoCSS
import "virtual:uno.css"
import 'leaflet/dist/leaflet.css'
import './static/fonts/font.css'
import {getEnvObj} from "@/utils/index.js";
console.log('当前环境变量',getEnvObj())
export function createApp () {
src/static/fonts/SourceHanSansCN-Bold.woff2
Binary files differ
src/static/fonts/SourceHanSansCN-Regular.woff2
Binary files differ
src/static/fonts/YouSheBiaoTiHei.TTF
Binary files differ
src/static/fonts/font.css
New file
@@ -0,0 +1,43 @@
@font-face {
  font-family: "Source Han Sans CN";
  src: url("SourceHanSansCN-Regular.woff2") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Han Sans CN";
  src: url("SourceHanSansCN-Bold.woff2") format("opentype") ;
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Segoe UI";
  src: url("SourceHanSansCN-Regular.woff2") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Segoe UI";
  src: url("SourceHanSansCN-Bold.woff2") format("opentype") ;
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* 额外的标题字体 */
@font-face {
  font-family: "YouSheBiaoTiHei";
  src: url("YouSheBiaoTiHei.TTF") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}