jack 4 days ago
parent
commit
054f93d574

+ 1 - 0
src/views/components/element/ShapeElement/BaseShapeElement.vue

@@ -120,6 +120,7 @@ const text = computed<ShapeText>(() => {
   height: 100%;
 }
 .element-content {
+  font-family: Kaiti, "Kaiti SC", "Kaiti TC", Roboto, "Noto Sans SC", "Noto Sans TC", "Noto Sans KR", "Noto Sans JP", "Roboto", Roboto, "Noto Sans SC", "Noto Sans TC", "Noto Sans KR", "Noto Sans JP";
   width: 100%;
   height: 100%;
   position: relative;

+ 1 - 0
src/views/components/element/ShapeElement/index.vue

@@ -236,6 +236,7 @@ const startEdit = () => {
   height: 100%;
 }
 .element-content {
+  font-family: Kaiti, "Kaiti SC", "Kaiti TC", Roboto, "Noto Sans SC", "Noto Sans TC", "Noto Sans KR", "Noto Sans JP", "Roboto", Roboto, "Noto Sans SC", "Noto Sans TC", "Noto Sans KR", "Noto Sans JP";
   width: 100%;
   height: 100%;
   position: relative;

+ 1 - 1
src/views/components/element/TextElement/BaseTextElement.vue

@@ -79,7 +79,7 @@ const { shadowStyle } = useElementShadow(shadow)
   padding: 10px;
   line-height: 1.5;
   word-break: break-word;
-
+  font-family: Kaiti, "Kaiti SC", "Kaiti TC", Roboto, "Noto Sans SC", "Noto Sans TC", "Noto Sans KR", "Noto Sans JP", "Roboto", Roboto, "Noto Sans SC", "Noto Sans TC", "Noto Sans KR", "Noto Sans JP";
   .text {
     position: relative;
 

+ 1 - 1
src/views/components/element/TextElement/index.vue

@@ -198,7 +198,7 @@ watch(isHandleElement, () => {
   line-height: 1.5;
   word-break: break-word;
   cursor: move;
-
+  font-family: Kaiti, "Kaiti SC", "Kaiti TC", Roboto, "Noto Sans SC", "Noto Sans TC", "Noto Sans KR", "Noto Sans JP", "Roboto", Roboto, "Noto Sans SC", "Noto Sans TC", "Noto Sans KR", "Noto Sans JP";
   .text {
     position: relative;
   }