Font menu: add symbols for default and fallback fonts (#3941)

Also allows for updating the fallback font and see results
in real-time on the underlying document.
Bump crengine for: fix updating fallback font

Also adds a menu item to generate a html document showing some
sample text rendered with each available font (only if the user has
a file koreader/settings/fonts-test-sample.html with some HTML
snippet of his choice).
This commit is contained in:
poire-z
2018-05-11 17:48:26 +02:00
committed by GitHub
parent e3b7524d9c
commit a9905c5129
4 changed files with 128 additions and 13 deletions

View File

@@ -726,8 +726,12 @@ function TouchMenu:onMenuHold(item)
end
if callback then
UIManager:scheduleIn(0.1, function()
self:closeMenu()
callback()
if item.hold_may_update_menu then
callback(function() self:updateItems() end)
else
self:closeMenu()
callback()
end
end)
end
end