A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
feat: static woff2 font files for offline compatibility
aminnausinfa6f9779d419
diff --git a/public/fonts/dm-sans/dm-sans-v17-latin-ext-italic.woff2 b/public/fonts/dm-sans/dm-sans-v17-latin-ext-italic.woff2new file mode 100644index 00000000..0a578c0dBinary files /dev/null and b/public/fonts/dm-sans/dm-sans-v17-latin-ext-italic.woff2 differdiff --git a/public/fonts/dm-sans/dm-sans-v17-latin-ext-regular.woff2 b/public/fonts/dm-sans/dm-sans-v17-latin-ext-regular.woff2new file mode 100644index 00000000..6e84cba1Binary files /dev/null and b/public/fonts/dm-sans/dm-sans-v17-latin-ext-regular.woff2 differdiff --git a/public/fonts/dm-sans/dm-sans-v17-latin-italic.woff2 b/public/fonts/dm-sans/dm-sans-v17-latin-italic.woff2new file mode 100644index 00000000..c12ab0d6Binary files /dev/null and b/public/fonts/dm-sans/dm-sans-v17-latin-italic.woff2 differdiff --git a/public/fonts/dm-sans/dm-sans-v17-latin-regular.woff2 b/public/fonts/dm-sans/dm-sans-v17-latin-regular.woff2new file mode 100644index 00000000..c75f7bf1Binary files /dev/null and b/public/fonts/dm-sans/dm-sans-v17-latin-regular.woff2 differdiff --git a/public/fonts/figtree/figtree-v9-latin-ext-italic.woff2 b/public/fonts/figtree/figtree-v9-latin-ext-italic.woff2new file mode 100644index 00000000..f9e4b0a2Binary files /dev/null and b/public/fonts/figtree/figtree-v9-latin-ext-italic.woff2 differdiff --git a/public/fonts/figtree/figtree-v9-latin-ext-regular.woff2 b/public/fonts/figtree/figtree-v9-latin-ext-regular.woff2new file mode 100644index 00000000..a8a11238Binary files /dev/null and b/public/fonts/figtree/figtree-v9-latin-ext-regular.woff2 differdiff --git a/public/fonts/figtree/figtree-v9-latin-italic.woff2 b/public/fonts/figtree/figtree-v9-latin-italic.woff2new file mode 100644index 00000000..06e95e54Binary files /dev/null and b/public/fonts/figtree/figtree-v9-latin-italic.woff2 differdiff --git a/public/fonts/figtree/figtree-v9-latin-regular.woff2 b/public/fonts/figtree/figtree-v9-latin-regular.woff2new file mode 100644index 00000000..05ce657dBinary files /dev/null and b/public/fonts/figtree/figtree-v9-latin-regular.woff2 differdiff --git a/public/fonts/fonts.css b/public/fonts/fonts.cssnew file mode 100644index 00000000..01554005--- /dev/null+++ b/public/fonts/fonts.css@@ -0,0 +1,202 @@+/* DM Sans */++/* latin-ext */+@font-face {+ font-family: 'DM Sans';+ font-style: italic;+ font-weight: 100 1000;+ font-display: swap;+ src: url('/fonts/dm-sans/dm-sans-v17-latin-ext-italic.woff2') format('woff2');+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;+}+/* latin */+@font-face {+ font-family: 'DM Sans';+ font-style: italic;+ font-weight: 100 1000;+ font-display: swap;+ src: url('/fonts/dm-sans/dm-sans-v17-latin-italic.woff2') format('woff2');+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;+}+/* latin-ext */+@font-face {+ font-family: 'DM Sans';+ font-style: normal;+ font-weight: 100 1000;+ font-display: swap;+ src: url('/fonts/dm-sans/dm-sans-v17-latin-ext-regular.woff2') format('woff2');+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;+}+/* latin */+@font-face {+ font-family: 'DM Sans';+ font-style: normal;+ font-weight: 100 1000;+ font-display: swap;+ src: url('/fonts/dm-sans/dm-sans-v17-latin-regular.woff2') format('woff2');+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;+}++/* Rubik */+++/* arabic */+@font-face {+ font-family: 'Rubik';+ font-style: italic;+ font-weight: 300 900;+ font-display: swap;+ src: url('/fonts/rubik/rubik-v31-arabic-italics.woff2') format('woff2');+ unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;+}+/* cyrillic-ext */+@font-face {+ font-family: 'Rubik';+ font-style: italic;+ font-weight: 300 900;+ font-display: swap;+ src: url('/fonts/rubik/rubik-v31-cyrillic-ext-italics.woff2') format('woff2');+ unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;+}+/* cyrillic */+@font-face {+ font-family: 'Rubik';+ font-style: italic;+ font-weight: 300 900;+ font-display: swap;+ src: url('/fonts/rubik/rubik-v31-cyrillic-italics.woff2') format('woff2');+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;+}+/* latin-ext */+@font-face {+ font-family: 'Rubik';+ font-style: italic;+ font-weight: 300 900;+ font-display: swap;+ src: url('/fonts/rubik/rubik-v31-latin-ext-italics.woff2') format('woff2');+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;+}+/* latin */+@font-face {+ font-family: 'Rubik';+ font-style: italic;+ font-weight: 300 900;+ font-display: swap;+ src: url('/fonts/rubik/rubik-v31-latin-italics.woff2') format('woff2');+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;+}+/* arabic */+@font-face {+ font-family: 'Rubik';+ font-style: normal;+ font-weight: 300 900;+ font-display: swap;+ src: url('/fonts/rubik/rubik-v31-arabic-regular.woff2') format('woff2');+ unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;+}+/* cyrillic-ext */+@font-face {+ font-family: 'Rubik';+ font-style: normal;+ font-weight: 300 900;+ font-display: swap;+ src: url('/fonts/rubik/rubik-v31-cyrillic-ext-regular.woff2') format('woff2');+ unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;+}+/* cyrillic */+@font-face {+ font-family: 'Rubik';+ font-style: normal;+ font-weight: 300 900;+ font-display: swap;+ src: url('/fonts/rubik/rubik-v31-cyrillic-regular.woff2') format('woff2');+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;+}+/* latin-ext */+@font-face {+ font-family: 'Rubik';+ font-style: normal;+ font-weight: 300 900;+ font-display: swap;+ src: url('/fonts/rubik/rubik-v31-latin-ext-regular.woff2') format('woff2');+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;+}+/* latin */+@font-face {+ font-family: 'Rubik';+ font-style: normal;+ font-weight: 300 900;+ font-display: swap;+ src: url('/fonts/rubik/rubik-v31-latin-regular.woff2') format('woff2');+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;+}+++/* Quicksand */++/* vietnamese */+@font-face {+ font-family: 'Quicksand';+ font-style: normal;+ font-weight: 300 700;+ font-display: swap;+ src: url('/fonts/quicksand/quicksand-v37-vietnamese-regular.woff2') format('woff2');+ unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;+}+/* latin-ext */+@font-face {+ font-family: 'Quicksand';+ font-style: normal;+ font-weight: 300 700;+ font-display: swap;+ src: url('/fonts/quicksand/quicksand-v37-latin-ext-regular.woff2') format('woff2');+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;+}+/* latin */+@font-face {+ font-family: 'Quicksand';+ font-style: normal;+ font-weight: 300 700;+ font-display: swap;+ src: url('/fonts/quicksand/quicksand-v37-latin-regular.woff2') format('woff2');+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;+}++/* Figtree */++/* latin-ext */+@font-face {+ font-family: 'Figtree';+ font-style: italic;+ font-weight: 300 900;+ font-display: swap;+ src: url('/fonts/figtree/figtree-v9-latin-ext-italic.woff2') format('woff2');+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;+}+/* latin */+@font-face {+ font-family: 'Figtree';+ font-style: italic;+ font-weight: 300 900;+ font-display: swap;+ src: url('/fonts/figtree/figtree-v9-latin-italic.woff2') format('woff2');+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;+}+/* latin-ext */+@font-face {+ font-family: 'Figtree';+ font-style: normal;+ font-weight: 300 900;+ font-display: swap;+ src: url('/fonts/figtree/figtree-v9-latin-ext-regular.woff2') format('woff2');+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;+}+/* latin */+@font-face {+ font-family: 'Figtree';+ font-style: normal;+ font-weight: 300 900;+ font-display: swap;+ src: url('/fonts/figtree/figtree-v9-latin-regular.woff2') format('woff2');+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;+}diff --git a/public/fonts/klee-one/klee-one-v13-cyrillic_greek-ext_japanese_latin_latin-ext-600.woff2 b/public/fonts/klee-one/klee-one-v13-cyrillic_greek-ext_japanese_latin_latin-ext-600.woff2new file mode 100644index 00000000..b50fa292Binary files /dev/null and b/public/fonts/klee-one/klee-one-v13-cyrillic_greek-ext_japanese_latin_latin-ext-600.woff2 differdiff --git a/public/fonts/klee-one/klee-one-v13-regular.woff2 b/public/fonts/klee-one/klee-one-v13-regular.woff2new file mode 100644index 00000000..42c769f0Binary files /dev/null and b/public/fonts/klee-one/klee-one-v13-regular.woff2 differdiff --git a/public/fonts/noto-sans/NotoSans-V42-Regular.woff2 b/public/fonts/noto-sans/NotoSans-V42-Regular.woff2new file mode 100644index 00000000..ba972dcfBinary files /dev/null and b/public/fonts/noto-sans/NotoSans-V42-Regular.woff2 differdiff --git a/public/fonts/noto-sans/NotoSansSC-V40-Regular.woff2 b/public/fonts/noto-sans/NotoSansSC-V40-Regular.woff2new file mode 100644index 00000000..67e9cf1eBinary files /dev/null and b/public/fonts/noto-sans/NotoSansSC-V40-Regular.woff2 differdiff --git a/public/fonts/noto-sans/NotoSansTC-V39-Regular.woff2 b/public/fonts/noto-sans/NotoSansTC-V39-Regular.woff2new file mode 100644index 00000000..50c0dc50Binary files /dev/null and b/public/fonts/noto-sans/NotoSansTC-V39-Regular.woff2 differdiff --git a/public/fonts/noto-sans/NotoSansThai-V29-Regular.woff2 b/public/fonts/noto-sans/NotoSansThai-V29-Regular.woff2new file mode 100644index 00000000..78a2c032Binary files /dev/null and b/public/fonts/noto-sans/NotoSansThai-V29-Regular.woff2 differdiff --git a/public/fonts/quicksand/quicksand-v37-latin-ext-regular.woff2 b/public/fonts/quicksand/quicksand-v37-latin-ext-regular.woff2new file mode 100644index 00000000..a57e727cBinary files /dev/null and b/public/fonts/quicksand/quicksand-v37-latin-ext-regular.woff2 differdiff --git a/public/fonts/quicksand/quicksand-v37-latin-regular.woff2 b/public/fonts/quicksand/quicksand-v37-latin-regular.woff2new file mode 100644index 00000000..b29be8d0Binary files /dev/null and b/public/fonts/quicksand/quicksand-v37-latin-regular.woff2 differdiff --git a/public/fonts/quicksand/quicksand-v37-vietnamese-regular.woff2 b/public/fonts/quicksand/quicksand-v37-vietnamese-regular.woff2new file mode 100644index 00000000..4ac6270eBinary files /dev/null and b/public/fonts/quicksand/quicksand-v37-vietnamese-regular.woff2 differdiff --git a/public/fonts/rubik/rubik-v31-arabic-italics.woff2 b/public/fonts/rubik/rubik-v31-arabic-italics.woff2new file mode 100644index 00000000..ff3a7b58Binary files /dev/null and b/public/fonts/rubik/rubik-v31-arabic-italics.woff2 differdiff --git a/public/fonts/rubik/rubik-v31-arabic-regular.woff2 b/public/fonts/rubik/rubik-v31-arabic-regular.woff2new file mode 100644index 00000000..3d019846Binary files /dev/null and b/public/fonts/rubik/rubik-v31-arabic-regular.woff2 differdiff --git a/public/fonts/rubik/rubik-v31-cyrillic-ext-italics.woff2 b/public/fonts/rubik/rubik-v31-cyrillic-ext-italics.woff2new file mode 100644index 00000000..8228bc4dBinary files /dev/null and b/public/fonts/rubik/rubik-v31-cyrillic-ext-italics.woff2 differdiff --git a/public/fonts/rubik/rubik-v31-cyrillic-ext-regular.woff2 b/public/fonts/rubik/rubik-v31-cyrillic-ext-regular.woff2new file mode 100644index 00000000..16abe426Binary files /dev/null and b/public/fonts/rubik/rubik-v31-cyrillic-ext-regular.woff2 differdiff --git a/public/fonts/rubik/rubik-v31-cyrillic-italics.woff2 b/public/fonts/rubik/rubik-v31-cyrillic-italics.woff2new file mode 100644index 00000000..fc8a409cBinary files /dev/null and b/public/fonts/rubik/rubik-v31-cyrillic-italics.woff2 differdiff --git a/public/fonts/rubik/rubik-v31-cyrillic-regular.woff2 b/public/fonts/rubik/rubik-v31-cyrillic-regular.woff2new file mode 100644index 00000000..1becf8a1Binary files /dev/null and b/public/fonts/rubik/rubik-v31-cyrillic-regular.woff2 differdiff --git a/public/fonts/rubik/rubik-v31-latin-ext-italics.woff2 b/public/fonts/rubik/rubik-v31-latin-ext-italics.woff2new file mode 100644index 00000000..91ee9925Binary files /dev/null and b/public/fonts/rubik/rubik-v31-latin-ext-italics.woff2 differdiff --git a/public/fonts/rubik/rubik-v31-latin-ext-regular.woff2 b/public/fonts/rubik/rubik-v31-latin-ext-regular.woff2new file mode 100644index 00000000..dea13dc7Binary files /dev/null and b/public/fonts/rubik/rubik-v31-latin-ext-regular.woff2 differdiff --git a/public/fonts/rubik/rubik-v31-latin-italics.woff2 b/public/fonts/rubik/rubik-v31-latin-italics.woff2new file mode 100644index 00000000..c39379c1Binary files /dev/null and b/public/fonts/rubik/rubik-v31-latin-italics.woff2 differdiff --git a/public/fonts/rubik/rubik-v31-latin-regular.woff2 b/public/fonts/rubik/rubik-v31-latin-regular.woff2new file mode 100644index 00000000..42fc52afBinary files /dev/null and b/public/fonts/rubik/rubik-v31-latin-regular.woff2 differdiff --git a/public/fonts/rubik/rubik-v31-regular.woff2 b/public/fonts/rubik/rubik-v31-regular.woff2new file mode 100644index 00000000..02ce22aaBinary files /dev/null and b/public/fonts/rubik/rubik-v31-regular.woff2 differdiff --git a/resources/js/components/video/subtitles/OctopusRenderer.ts b/resources/js/components/video/subtitles/OctopusRenderer.tsindex eb2041c3..25d7459a 100644--- a/resources/js/components/video/subtitles/OctopusRenderer.ts+++ b/resources/js/components/video/subtitles/OctopusRenderer.ts@@ -22,7 +22,7 @@ export default function useOctopusRenderer() {const languageTag = nextTrack.track_id === 0 ? `.${nextTrack.language}` : '';const subUrl = `/data/subtitles/${nextTrack.metadata_uuid}/${nextTrack.track_id}${languageTag}.ass`;- const baseFonts = ['/fonts/Rubik-Regular.ttf', '/fonts/KleeOne-Regular.ttf']; // Latin, Arabic, Cyrillic+ const baseFonts = ['/fonts/rubik/rubik-v31-regular.woff2', '/fonts/klee-one/klee-one-v13-regular.woff2']; // Latin, Arabic, Cyrillicconst supplementalFonts = generateLanguageFonts(nextTrack.language);const trackTitle = nextTrack.title ? `Title: ${nextTrack.title}` : `Track: ${nextTrack.track_id}`;@@ -49,7 +49,7 @@ export default function useOctopusRenderer() {subUrl,fonts: [...baseFonts, ...supplementalFonts],workerUrl: '/build/lib/subtitles-octopus/subtitles-octopus-worker.js',- fallbackFont: '/fonts/NotoSans-Regular.ttf',+ fallbackFont: '/fonts/noto-sans/NotoSans-V42-Regular.woff2',onError(e?: any) {toast.error('Subtitles Failed', { description: e?.message ?? undefined });clearOctopus();@@ -94,14 +94,14 @@ export default function useOctopusRenderer() {const generateLanguageFonts = (language?: string): string[] => {switch (language?.toLowerCase()) {case 'tha':- return ['/fonts/NotoSansThai-Regular.ttf'];+ return ['/fonts/noto-sans/NotoSansThai-V29-Regular.woff2'];case 'jpn':- return ['/fonts/KleeOne-Regular.ttf'];+ return ['/fonts/klee-one/klee-one-v13-regular.woff2'];case 'cn':case 'chi':case 'tc':case 'sc':- return ['/fonts/NotoSansSC-Regular.ttf', '/fonts/NotoSansTC-Regular.ttf'];+ return ['/fonts/noto-sans/NotoSansSC-V40-Regular.woff2', '/fonts/noto-sans/NotoSansTC-V39-Regular.woff2'];default:return [];}diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.phpindex 00abd4d5..ff0db323 100755--- a/resources/views/layouts/app.blade.php+++ b/resources/views/layouts/app.blade.php@@ -43,11 +43,7 @@</script><link rel="manifest" href="/manifest.json" crossorigin="use-credentials">- <link rel="preconnect" href="https://fonts.googleapis.com">- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>-- <link rel="preload" as="style" href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Figtree:ital,wght@0,300..900;1,300..900&family=Quicksand:[email protected]&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap">- <link rel="stylesheet" media="print" onload="this.media='all'" href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Figtree:ital,wght@0,300..900;1,300..900&family=Quicksand:[email protected]&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap">+ <link rel="stylesheet" href="/fonts/fonts.css"><!-- local -->@vite('resources/css/app.css')