From 7bcd9ebeb253941403995d909403e7cb3ec7686c Mon Sep 17 00:00:00 2001
From: unanmed <1319491857@qq.com>
Date: Mon, 21 Oct 2024 12:48:04 +0800
Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9=20FiraCode=20?=
 =?UTF-8?q?=E5=AD=97=E4=BD=93=E7=9A=84=E4=BD=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 public/project/data.js                              |   3 ++-
 .../project/fonts/FiraCode.ttf                      | Bin
 src/panel/enemyCritical.vue                         |   2 +-
 src/styles.less                                     |   5 -----
 src/ui/danmakuEditor.vue                            |   8 ++++----
 5 files changed, 7 insertions(+), 11 deletions(-)
 rename src/fonts/FiraCode-Regular.ttf => public/project/fonts/FiraCode.ttf (100%)

diff --git a/public/project/data.js b/public/project/data.js
index 64aa914..f9f1f23 100644
--- a/public/project/data.js
+++ b/public/project/data.js
@@ -254,7 +254,8 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
 			"zone.mp3"
 		],
 		"fonts": [
-			"normal"
+			"normal",
+			"FiraCode"
 		],
 		"nameMap": {
 			"确定": "confirm.mp3",
diff --git a/src/fonts/FiraCode-Regular.ttf b/public/project/fonts/FiraCode.ttf
similarity index 100%
rename from src/fonts/FiraCode-Regular.ttf
rename to public/project/fonts/FiraCode.ttf
diff --git a/src/panel/enemyCritical.vue b/src/panel/enemyCritical.vue
index c349c95..229d38d 100644
--- a/src/panel/enemyCritical.vue
+++ b/src/panel/enemyCritical.vue
@@ -66,7 +66,7 @@
                     }}</span
                 >
                 <span class="changable" :change="nowDamageChangable"
-                    ><span style="font-family: 'Fira Code'">{{
+                    ><span style="font-family: 'FiraCode'">{{
                         (nowDamage[0] as number) < 0 && !has(enemy.damage)
                             ? '=>'
                             : ''
diff --git a/src/styles.less b/src/styles.less
index 2c3fdcb..cee91ac 100644
--- a/src/styles.less
+++ b/src/styles.less
@@ -83,11 +83,6 @@
     cursor: not-allowed;
 }
 
-@font-face {
-    font-family: Fira Code;
-    src: url(/src/fonts/FiraCode-Regular.ttf);
-}
-
 #non-ui {
     position: absolute;
     z-index: 999;
diff --git a/src/ui/danmakuEditor.vue b/src/ui/danmakuEditor.vue
index c9fbdd6..ae778bd 100644
--- a/src/ui/danmakuEditor.vue
+++ b/src/ui/danmakuEditor.vue
@@ -505,7 +505,7 @@ onUnmounted(() => {
     color: white;
     transition: color 0.2s linear;
     margin-right: 7px;
-    font-family: 'Fira Code', 'Arial';
+    font-family: 'FiraCode', 'Arial';
 }
 
 .danmaku-tool[open='true'],
@@ -529,7 +529,7 @@ onUnmounted(() => {
     flex-direction: row;
     align-items: center;
     white-space: nowrap;
-    font-family: 'Fira Code', 'Arial';
+    font-family: 'FiraCode', 'Arial';
 
     #danmaku-css-input {
         width: 100%;
@@ -550,7 +550,7 @@ onUnmounted(() => {
     font-size: 80%;
     white-space: nowrap;
     justify-content: space-between;
-    font-family: 'Fira Code', 'Arial';
+    font-family: 'FiraCode', 'Arial';
 
     .danmaku-icon-scroll {
         width: calc(90% - 200px);
@@ -600,7 +600,7 @@ onUnmounted(() => {
     align-items: center;
     white-space: nowrap;
     justify-content: space-between;
-    font-family: 'Fira Code', 'Arial';
+    font-family: 'FiraCode', 'Arial';
     font-size: 75%;
 
     #danmaku-color-container {