From dab8e448f3425010f1740da465a7a7fc41882f0a Mon Sep 17 00:00:00 2001 From: Jacques PERON Date: Sat, 25 Jul 2026 00:29:15 +0200 Subject: [PATCH] android: set FONTDIR so MuPDF can find its fallback fonts (#15738) --- platform/android/llapp_main.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/android/llapp_main.lua b/platform/android/llapp_main.lua index 36045c0d8..a75e10b94 100644 --- a/platform/android/llapp_main.lua +++ b/platform/android/llapp_main.lua @@ -18,6 +18,9 @@ end -- path to primary external storage partition local path = android.getExternalStoragePath() +-- Set $FONTDIR to android.dir/fonts so MuPDF can find its fonts. +C.setenv("FONTDIR", android.dir .. "/fonts", 1) + -- create fake command-line arguments -- luacheck: ignore 121 if android.isDebuggable() then