android: make system fonts toggable (#5670)

Also add droid font back to android and remove the workaround
This commit is contained in:
Martín Fernández
2019-12-08 14:54:14 +01:00
committed by poire-z
parent bd793d1ddd
commit a5069f1c26
5 changed files with 57 additions and 55 deletions

View File

@@ -50,7 +50,7 @@ function ReaderFont:init()
end
-- build face_table for menu
self.face_table = {}
if Device:isDesktop() then
if Device:isAndroid() or Device:isDesktop() then
table.insert(self.face_table, require("ui/elements/font_settings"):getMenuTable())
end
local face_list = cre.getFontFaces()