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 @@ }} {{ + >{{ (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 {