ch_m wrote:
i am using wxpython in order to create an application.
I face a problem when i create an executable file through cx_freeze or
py2exe. The problem is relevant to static texts and font sizes.
I set the font size of a static text for example at 12 size. When i
run the exe file in another computer the size of the text changes
based on the computer settings from the display option and magnifier
(small, medium, large) based on users preferences. Is there a way to
keep it all the time fixed?
What do you mean by “fixed”? And that’s a very serious question. It’s
very easy to think that everyone’s screen is exactly like yours, but it
simply isn’t true. Different resolutions, different sizes, retina
displays, 4K displays, different eyesight preferences – all of those
things affect the size of pixels on the screen.
You asked for a 12-point font. The size of a 12-point font in pixels
varies depending on screen size and resolution. If your font appears
larger on some screen, it’s because that user wanted 12-point text to
appear larger. You should consider modifying your display so that it
can adapt to those different resolution.
You can try specifying your fonts in pixels instead, but you run the
risk of having your text be invisible on a retina display.
To put it another way, this is not a simple task.
–
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
–
You received this message because you are subscribed to the Google Groups “wxPython-users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.