font menu for readerui
This commit is contained in:
1 parent
f8f188ff89
commit
acaf8d660e
6 files changed
+51
-9
No files matched your search
@@ -85,6 +85,13 @@ end
|
||||
function CreDocument:renderPage(pageno, rect, zoom, rotation)
|
||||
end
|
||||
|
||||
function CreDocument:setFont(new_font_face)
|
||||
if new_font_face and self.font_face ~= new_font_face then
|
||||
self._document:setFontFace(new_font_face)
|
||||
self.font_face = new_font_face
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
DocumentRegistry:addProvider("txt", "application/txt", CreDocument)
|
||||
DocumentRegistry:addProvider("epub", "application/epub", CreDocument)
|
||||
|
||||
Reference in new issue
Block a user