Skip to content

A self-hosted media server and file management system

fix: octopus missing default font

aminnausincda1dfd5c26a
diff --git a/public/fonts/.fallback-default.woff2 b/public/fonts/.fallback-default.woff2
new file mode 100644
index 00000000..8b7b632f
Binary files /dev/null and b/public/fonts/.fallback-default.woff2 differ
diff --git a/resources/js/components/video/subtitles/OctopusRenderer.ts b/resources/js/components/video/subtitles/OctopusRenderer.ts
index e250b18f..b2074525 100644
--- a/resources/js/components/video/subtitles/OctopusRenderer.ts
+++ b/resources/js/components/video/subtitles/OctopusRenderer.ts
@@ -10,9 +10,9 @@ export default function useOctopusRenderer() {
const video = document.getElementById('video-source');
if (!video) return;
const options = {
- video, // HTML5 video element
- subUrl, // Link to subtitles
- fonts: ['/fonts/Roboto-Medium.ttf', '/fonts/Arial.ttf'],
+ video,
+ subUrl,
+ fonts: ['/fonts/Roboto-Medium.ttf', '/fonts/Arial.ttf', '/fonts/.fallback-default.woff2'],
workerUrl: '/lib/subtitles-octopus/subtitles-octopus-worker.js',
legacyWorkerUrl: '/lib/subtitles-octopus/subtitles-octopus-worker-legacy.js',
};