Skip to content

A self-hosted media server and file management system

fix: fallback font syntax was wrong

aminnausin6782d060b4ad
diff --git a/public/fonts/.fallback-default.woff2 b/public/fonts/Rubik-Regular.ttf
similarity index 100%
rename from public/fonts/.fallback-default.woff2
rename to public/fonts/Rubik-Regular.ttf
diff --git a/resources/js/components/video/subtitles/OctopusRenderer.ts b/resources/js/components/video/subtitles/OctopusRenderer.ts
index b2074525..f8b2e1da 100644
--- a/resources/js/components/video/subtitles/OctopusRenderer.ts
+++ b/resources/js/components/video/subtitles/OctopusRenderer.ts
@@ -12,9 +12,10 @@ export default function useOctopusRenderer() {
const options = {
video,
subUrl,
- fonts: ['/fonts/Roboto-Medium.ttf', '/fonts/Arial.ttf', '/fonts/.fallback-default.woff2'],
+ fonts: ['/fonts/Roboto-Medium.ttf', '/fonts/Arial.ttf', '/fonts/Rubik-Regular.ttf'],
workerUrl: '/lib/subtitles-octopus/subtitles-octopus-worker.js',
legacyWorkerUrl: '/lib/subtitles-octopus/subtitles-octopus-worker-legacy.js',
+ fallbackFont: '/fonts/Rubik-Regular.ttf',
};
assInstance.value = new SubtitlesOctopus(options);
};