fixed naming

Renamed font file to be subfonts

Signed-off-by: Lance Chant <13349722+lancechant@users.noreply.github.com>
This commit is contained in:
Lance Chant
2026-01-17 14:17:37 +02:00
parent 7ad3e8c61f
commit 3e3f61a50e
2 changed files with 2 additions and 1 deletions

View File

@@ -139,7 +139,8 @@ class MPVLayerRenderer(private val context: Context) : MPVLib.EventObserver {
val mpvDir = File(context.getExternalFilesDir(null) ?: context.filesDir, "mpv")
//Log.i(TAG, "mpv config dir: $mpvDir")
if (!mpvDir.exists()) mpvDir.mkdirs()
arrayOf("font.ttf").forEach { fileName ->
// This needs to be named `subfont.ttf` else it won't work
arrayOf("subfont.ttf").forEach { fileName ->
val file = File(mpvDir, fileName)
if (file.exists()) return@forEach
context.assets