mirror of
https://github.com/readest/readest.git
synced 2026-04-29 12:00:49 +00:00
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:
parent
946d17882b
commit
59f0cede39
2 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue