diff --git a/settings.yaml b/settings.yaml index 960fa2f..1507141 100644 --- a/settings.yaml +++ b/settings.yaml @@ -29,6 +29,8 @@ spec: value: "JetBrains Mono" - label: "Hack" value: "Hack" + - label: "Fira Code" + value: "Fira Code" - $formkit: checkbox label: 启用全屏布局 name: fullscreen_layout diff --git a/src/fonts/FiraCode-VF.woff2 b/src/fonts/FiraCode-VF.woff2 new file mode 100644 index 0000000..e755a9d Binary files /dev/null and b/src/fonts/FiraCode-VF.woff2 differ diff --git a/src/styles/fonts.scss b/src/styles/fonts.scss index f4efada..a04422f 100644 --- a/src/styles/fonts.scss +++ b/src/styles/fonts.scss @@ -56,4 +56,14 @@ font-weight: 700; font-style: italic; font-display: swap; +} + +@font-face { + font-family: 'Fira Code'; + src: local('Fira Code'), + local('FiraCode'), + url('../fonts/FiraCode-VF.woff2') format("woff2"); + font-weight: 300 700; + font-style: normal; + font-display: swap; } \ No newline at end of file