forked from akai/readest
fix: import system fonts list on Android (#998)
Note that the system fonts might not be available in Android webview
This commit is contained in:
+1
@@ -294,6 +294,7 @@ class NativeBridgePlugin(private val activity: Activity): Plugin(activity) {
|
||||
var fontName = fileFileName
|
||||
.replace(Regex("\\.(ttf|otf)$", RegexOption.IGNORE_CASE), "")
|
||||
.trim()
|
||||
fontList.add(fontName)
|
||||
}
|
||||
ret.put("fonts", JSONArray(fontList))
|
||||
} catch (e: Exception) {
|
||||
|
||||
Reference in New Issue
Block a user