Skip to content

is is possible to scale a lwtk application? #9

Closed Answered by osch
mark-summerfield asked this question in Q&A
Discussion options

You must be logged in to vote

You can scale the whole lwtk application by setting the scaleFactor style parameter. This can be done by setting this style parameter somewhere in the style hierarchy. This can be done for the whole application for example in example01.lua replace

local app = Application("example01.lua")

with

local app = Application("example01.lua", { scaleFactor = 3 })

or you can set this style parameter for an individual widget subtree, see the documentation for lwtk.Style.

Anyway, there should be some support for hardware dependent screen scale factor, so my question is:

What does

print(app:getScreenScale())

give on your platform?

However, if you only want to increase the font size and not the whole sc…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by osch
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants