adjust font sizes in credocument according to screen dpi
and font sizes list is moved to defaults.lua
This commit is contained in:
1 parent
4cd8a0e9e6
commit
32ffacdf77
4 files changed
+25
-6
No files matched your search
@@ -89,6 +89,10 @@ function CreDocument:init()
|
||||
ok, self._document = pcall(cre.newDocView,
|
||||
Screen:getWidth(), Screen:getHeight(), self.PAGE_VIEW_MODE
|
||||
)
|
||||
|
||||
-- adjust font sizes according to screen dpi
|
||||
self._document:adjustFontSizes(Screen:getDPI())
|
||||
|
||||
if not ok then
|
||||
self.error_message = self.doc -- will contain error message
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user