adjust font sizes in credocument according to screen dpi

and font sizes list is moved to defaults.lua
This commit is contained in:
chrox
2013-10-16 17:06:28 +08:00
parent 4cd8a0e9e6
commit 32ffacdf77
4 changed files with 25 additions and 6 deletions

View File

@@ -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