浏览代码

更改字体为思源黑体并打包

SanHQin 1 年之前
父节点
当前提交
7eec320fc2

+ 8 - 1
dist/index.html

@@ -18,10 +18,17 @@
             -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
             background-color: rgba(0, 0, 0, 0.1);
         }
+				@font-face {
+					font-family: 'Source Han Sans SC';
+					src: url('./static/SourceHanSans-Regular.otf') format('truetype');
+					font-weight: normal;
+					font-style: normal;
+				}
         
         html,
         body {
             height: 100%;
             width: 100%;
             background: #e6eaf0;
-        }</style><link href=./static/css/app.1fa8852a5316b212b0868b6dc6492d93.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.9cf3645489e7b6bb2704.js></script><script type=text/javascript src=./static/js/app.911f5e18321a6078a644.js></script></body></html><script>document.domain = document.domain.split(".").slice(-2).join(".");</script>
+						font-family: 'Source Han Sans SC', sans-serif;
+        }</style><link href=./static/css/app.1043a4e657b1ea1f1348b7eb7fd1fa30.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.9cf3645489e7b6bb2704.js></script><script type=text/javascript src=./static/js/app.e7c5b6c6a2253d886a6d.js></script></body></html><script>document.domain = document.domain.split(".").slice(-2).join(".");</script>

二进制
dist/static/SourceHanSans-Regular.otf


文件差异内容过多而无法显示
+ 0 - 0
dist/static/css/app.1043a4e657b1ea1f1348b7eb7fd1fa30.css


文件差异内容过多而无法显示
+ 0 - 0
dist/static/css/app.1043a4e657b1ea1f1348b7eb7fd1fa30.css.map


文件差异内容过多而无法显示
+ 0 - 0
dist/static/css/app.1fa8852a5316b212b0868b6dc6492d93.css


文件差异内容过多而无法显示
+ 0 - 0
dist/static/css/app.1fa8852a5316b212b0868b6dc6492d93.css.map


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/app.e7c5b6c6a2253d886a6d.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/app.e7c5b6c6a2253d886a6d.js.map


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map


+ 7 - 0
index.html

@@ -27,12 +27,19 @@
             -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
             background-color: rgba(0, 0, 0, 0.1);
         }
+				@font-face {
+					font-family: 'Source Han Sans SC';
+					src: url('./static/SourceHanSans-Regular.otf') format('truetype');
+					font-weight: normal;
+					font-style: normal;
+				}
         
         html,
         body {
             height: 100%;
             width: 100%;
             background: #e6eaf0;
+						font-family: 'Source Han Sans SC', sans-serif;
         }
     </style>
 </head>

+ 4 - 4
src/App.vue

@@ -250,11 +250,11 @@ export default {
   padding: 0;
 }
 
-body {
+/*body {
 	font-family: 'SimHei';
-  /* font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
-    "Microsoft YaHei", "微软雅黑", Arial, sans-serif; */
-}
+  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
+    "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
+}*/
 
 #app {
   height: 100%;

二进制
static/SourceHanSans-Regular.otf


部分文件因为文件数量过多而无法显示