font size and exe python

Hello,
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?

Thanks in advance

Ch_m

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.

It’s not just difficult, it’s unwise. If someone had a magnifier on, it’s probably because they NEED a magnifier. Forcing the display so that someone with vision issues can’t see it is … unkind.

The whole point of individual user settings is to meet the needs of individual users with issues you may not be aware of. That’s the point. It’s a good thing, and you should not try to disable that functionality.

David

···

On Jan 25, 2017 1:17 PM, “Tim Roberts” timr@probo.com wrote:

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.