From 987ac41c4623aa3d41446515bb8f3e13972c51f9 Mon Sep 17 00:00:00 2001 From: AbdallahMehiz Date: Tue, 16 Jan 2024 21:49:05 +0100 Subject: [PATCH] Use the font available in mpv's assets instead of system's --- .../ui/player/settings/sheets/subtitle/SubtitleSettingsSheet.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/player/settings/sheets/subtitle/SubtitleSettingsSheet.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/player/settings/sheets/subtitle/SubtitleSettingsSheet.kt index 2ba0e0770b..30f4440f63 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/player/settings/sheets/subtitle/SubtitleSettingsSheet.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/player/settings/sheets/subtitle/SubtitleSettingsSheet.kt @@ -168,7 +168,7 @@ fun SubtitlePreview( val fontFile = fontMap.keys.firstOrNull { it.contains(font, true) } ?.let { Typeface.createFromFile(fontMap[it]?.let { fontFile -> tempFileManager.createTempFile(fontFile) }) - } ?: Typeface.SANS_SERIF + } ?: Typeface.createFromAsset(LocalContext.current.assets, "subfont.ttf") Box( modifier = Modifier