Skip to content

Commit 6782d06

Browse files
committed
fix: fallback font syntax was wrong
1 parent cda1dfd commit 6782d06

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

resources/js/components/video/subtitles/OctopusRenderer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ export default function useOctopusRenderer() {
1212
const options = {
1313
video,
1414
subUrl,
15-
fonts: ['/fonts/Roboto-Medium.ttf', '/fonts/Arial.ttf', '/fonts/.fallback-default.woff2'],
15+
fonts: ['/fonts/Roboto-Medium.ttf', '/fonts/Arial.ttf', '/fonts/Rubik-Regular.ttf'],
1616
workerUrl: '/lib/subtitles-octopus/subtitles-octopus-worker.js',
1717
legacyWorkerUrl: '/lib/subtitles-octopus/subtitles-octopus-worker-legacy.js',
18+
fallbackFont: '/fonts/Rubik-Regular.ttf',
1819
};
1920
assInstance.value = new SubtitlesOctopus(options);
2021
};

0 commit comments

Comments
 (0)