Browse Source

黑体字体显

zhangjie 1 year ago
parent
commit
614a9299ca

+ 1 - 1
src/modules/card/elements/text/ElemText.vue

@@ -34,7 +34,7 @@ export default {
         fontWeight: this.data.fontWeight,
         fontWeight: this.data.fontWeight,
         fontFamily: this.data.fontFamily.includes("宋体")
         fontFamily: this.data.fontFamily.includes("宋体")
           ? `${this.data.fontFamily},宋体-简`
           ? `${this.data.fontFamily},宋体-简`
-          : `${this.data.fontFamily},宋体,宋体-简`,
+          : `${this.data.fontFamily},${this.data.fontFamily}-简,宋体,宋体-简`,
         fontSize: this.data.fontSize,
         fontSize: this.data.fontSize,
         color: this.data.color,
         color: this.data.color,
         textAlign: this.data.textAlign || null,
         textAlign: this.data.textAlign || null,

+ 1 - 1
src/modules/paper-export/elements/field-text/ElemFieldText.vue

@@ -35,7 +35,7 @@ export default {
         fontWeight: this.data.fontWeight,
         fontWeight: this.data.fontWeight,
         fontFamily: this.data.fontFamily.includes("宋体")
         fontFamily: this.data.fontFamily.includes("宋体")
           ? `${this.data.fontFamily},宋体-简`
           ? `${this.data.fontFamily},宋体-简`
-          : `${this.data.fontFamily},宋体,宋体-简`,
+          : `${this.data.fontFamily},${this.data.fontFamily}-简,宋体,宋体-简`,
         fontSize: this.data.fontSize,
         fontSize: this.data.fontSize,
         color: this.data.color,
         color: this.data.color,
         textAlign: this.data.textAlign || null,
         textAlign: this.data.textAlign || null,