浏览代码

拼音字体

natasha 2 年之前
父节点
当前提交
f2a0003846

+ 5 - 0
src/common/font/font.css

@@ -11,6 +11,11 @@
 }
 
 @font-face {
+    font-family: 'Sans-GBNPC';
+    src: url('FZPY_V1.10.TTF');
+}
+
+@font-face {
     font-family: 'iconFont';
     src: url('iconfont.woff');
 }

+ 1 - 1
src/components/Adult/common/SegwordConfig.vue

@@ -117,7 +117,7 @@ export default {
           name: "使用中文字体",
         },
         {
-          value: "Sans-GB",
+          value: "Sans-GBNPC",
           name: "使用拼音字体",
         },
         {

+ 2 - 2
src/components/Adult/common/SentenceSegTemp.vue

@@ -242,7 +242,7 @@ export default {
           name: "使用中文字体",
         },
         {
-          value: "Sans-GB",
+          value: "Sans-GBNPC",
           name: "使用拼音字体",
         },
         {
@@ -285,7 +285,7 @@ export default {
     changefontFamily(value, dItem) {
       if (value == "FZJCGFKTK") {
         dItem.config.fontSize = "20px";
-      } else if (value == "Sans-GB") {
+      } else if (value == "Sans-GBNPC") {
         dItem.config.fontSize = "16px";
       } else if (value == "robot") {
         dItem.config.fontSize = "16px";

+ 2 - 2
src/components/Adult/preview/components/OneSentenceTemp.vue

@@ -498,7 +498,7 @@ export default {
   }
 }
 .NPC-pinyin {
-  font-family: "Sans-GB";
+  font-family: "Sans-GBNPC";
   font-weight: normal;
   font-size: 14px;
   line-height: 130%;
@@ -531,7 +531,7 @@ export default {
     font-family: "robot";
   }
   &-pinyin {
-    font-family: "Sans-GB";
+    font-family: "Sans-GBNPC";
   }
   &.active {
     background: rgba(60, 200, 99, 0.2);

+ 2 - 2
src/components/Adult/preview/components/SentenceTemp.vue

@@ -491,7 +491,7 @@ export default {
     }
   }
   .RLC-pinyin {
-    font-family: "Sans-GB";
+    font-family: "Sans-GBNPC";
     font-weight: normal;
     font-size: 12px;
     line-height: 12px;
@@ -522,7 +522,7 @@ export default {
       font-family: "robot";
     }
     &-pinyin {
-      font-family: "Sans-GB";
+      font-family: "Sans-GBNPC";
     }
     &.active {
       background: rgba(60, 200, 99, 0.2);