Skip to content

A self-hosted media server and file management system

feat(experimental): add chinese script font

aminnausin6fd153fbb262
diff --git a/resources/css/app.css b/resources/css/app.css
index b7a9c76f..e8fd02ad 100755
--- a/resources/css/app.css
+++ b/resources/css/app.css
@@ -68,6 +68,9 @@
--font-commit-mono: 'Commit Mono', var(--mono);
--font-mono: var(--mono);
--font-klee-one-mono: 'Klee One', var(--font-commit-mono);
+ /* --font-lyrics: 'Ma Shan Zheng', var(--mono); */
+ /* --font-lyrics: 'Ma Shan Zheng', 'Klee One', var(--font-commit-mono); */
+ --font-lyrics: 'Klee One', var(--font-commit-mono);
/* Aspect ratios */
--aspect-video: 16 / 9;
diff --git a/resources/css/fonts.css b/resources/css/fonts.css
index c1d66e1e..d25c2b01 100644
--- a/resources/css/fonts.css
+++ b/resources/css/fonts.css
@@ -237,7 +237,7 @@
font-style: normal;
font-weight: 400;
src: url('../fonts/klee-one/klee-one-v13-japanese-regular.woff2') format('woff2');
- unicode-range: U+3000-303F, U+3040-309F, U+30A0-30FF, U+4E00-9FFF, U+FF00-FFEF;
+ unicode-range: U+3000-303F, U+3040-309F, U+30A0-30FF, U+4E00-9FFF, U+FF00-FFEF, U+31F0-31FF, U+FF66-FF9F;
}
/* klee-one-600 - japanese */
@font-face {
@@ -246,7 +246,7 @@
font-style: normal;
font-weight: 600;
src: url('../fonts/klee-one/klee-one-v13-japanese-600.woff2') format('woff2');
- unicode-range: U+3000-303F, U+3040-309F, U+30A0-30FF, U+4E00-9FFF, U+FF00-FFEF;
+ unicode-range: U+3000-303F, U+3040-309F, U+30A0-30FF, U+4E00-9FFF, U+FF00-FFEF, U+31F0-31FF, U+FF66-FF9F;
}
/* JetBrains Mono */
@@ -288,3 +288,14 @@
font-weight: 200 700;
src: url('../fonts/commit-mono/commit-mono-variable.ttf') format('truetype');
}
+
+/* Ma Shan Zheng Chinese */
+
+@font-face {
+ font-display: swap;
+ font-family: 'Ma Shan Zheng';
+ font-style: normal;
+ font-weight: 400;
+ src: url('../fonts/ma-shan-zheng/ma-shan-zheng-v17-chinese-simplified-regular.woff2') format('woff2');
+ unicode-range: U+3000-303F, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF;
+}
diff --git a/resources/fonts/ma-shan-zheng/ma-shan-zheng-v17-chinese-simplified-regular.woff2 b/resources/fonts/ma-shan-zheng/ma-shan-zheng-v17-chinese-simplified-regular.woff2
new file mode 100644
index 00000000..72493ef5
Binary files /dev/null and b/resources/fonts/ma-shan-zheng/ma-shan-zheng-v17-chinese-simplified-regular.woff2 differ
diff --git a/resources/js/components/video/plugins/lyrics/AmLyrics.vue b/resources/js/components/video/plugins/lyrics/AmLyrics.vue
index f99d5b27..757dddef 100644
--- a/resources/js/components/video/plugins/lyrics/AmLyrics.vue
+++ b/resources/js/components/video/plugins/lyrics/AmLyrics.vue
@@ -98,7 +98,7 @@ onUnmounted(() => {
:query="`${artist} ${album} ${title}`"
:duration="duration * 1000"
highlight-color="#fff"
- font-family="var(--font-klee-one-mono)"
+ font-family="var(--font-lyrics)"
autoscroll
interpolate
>