Scaling Issues on Windows 11

The place to post any Bugs or Problems you may have with the Current Release Version
Post Reply
rokas
Posts: 35
Joined: Fri Sep 25, 2015 1:44 pm

Scaling Issues on Windows 11

Post by rokas »

Hi Tim,

I have scaling issues on Windows 11 with latest version of Bible Analyzer 5.7.1.02 (I assume the same issue would happen with older versions too). My screen resolution is 2880x1800. When I start BibleAnalyzer as is, text everywhere in the app is washed out:
https://ibb.co/jZkYgV00

If I however override scaling in app compatibility settings, I get very crisp text, but the app isn't usable anymore, as UI elements get too small or even broken in their display, like the tabs:
https://ibb.co/hFrB2nbJ

Is there a fix?

Tim
Site Admin
Posts: 1737
Joined: Sun Dec 07, 2008 1:14 pm

Re: Scaling Issues on Windows 11

Post by Tim »

The best fix is to only use 100% scaling. That is the Microsoft's recommendation as well. Apps can be distorted otherwise.

Another option is to change the screen resolution, but this is not recommended either. Although, it can make everything larger, it will also be softer.

I have a 3440/1440 monitor and a 2560/1440 and even though my tired old eyes would like everything larger, I keep both at 100%.
Tim Morton
Developer, Bible Analyzer

But to him that worketh not, but believeth on him that justifieth the ungodly, his faith is counted for righteousness. (Rom 4:5 AV)

rokas
Posts: 35
Joined: Fri Sep 25, 2015 1:44 pm

Re: Scaling Issues on Windows 11

Post by rokas »

I cannot use 100% scaling. This is 15 inch laptop screen. I currently use 200% scaling. 100% does make everything ridiculously small. I assume both monitors you mention are desktop monitors of around 30 inches (i.e. double the size of mine), meaning me switching to 100% would be like you switching to 50% :mrgreen:

Could this be fixed on software level? I mean, all other apps I use scale without problems to 200%.

Tim
Site Admin
Posts: 1737
Joined: Sun Dec 07, 2008 1:14 pm

Re: Scaling Issues on Windows 11

Post by Tim »

Scaling is on a platform level of Bible Analyzer underlying framework which I can't change.

But when I compare your scaled image with my 100% scale, to me it looks pretty good. The toolbar icons show the upscaling when one looks close, but to me the text is very readable. If you increase the font size in BA even more so.
compare.jpg
compare.jpg (241.61 KiB) Viewed 265 times
Tim Morton
Developer, Bible Analyzer

But to him that worketh not, but believeth on him that justifieth the ungodly, his faith is counted for righteousness. (Rom 4:5 AV)

rokas
Posts: 35
Joined: Fri Sep 25, 2015 1:44 pm

Re: Scaling Issues on Windows 11

Post by rokas »

Hm, maybe it doesn't come really through, but it is actually really bad. The text is fuzzy, and reading for a longer period is unpleasant. I just cropped one verse from both screenshots, the difference is very strong:
comp.png
comp.png (19.38 KiB) Viewed 258 times
High DPI support was added in wxWidgets version 3.2 (https://wxwidgets.org/news/2022/07/wxwi ... l-release/, "High DPI support..."), and Bible Analyzer uses version 3.2.9. If I understand it correctly, you would need to opt in for it in the configuration of the app and change code a bit in a few places (https://docs.wxpython.org/high_dpi_overview.html). Actually there aren't that many changes which would be required for basic support of it, it is mostly the tabs (see the screenshot in my first post) and settings panels. If you want, I could help you with that (I work as a software engineer).

Tim
Site Admin
Posts: 1737
Joined: Sun Dec 07, 2008 1:14 pm

Re: Scaling Issues on Windows 11

Post by Tim »

It seems wx has updated this scaling issue since I last checked, which is good. I'll look into this.

If this is basically a drop in replacement of some of the pixel rendering or page rendering calls it may not be too much of an issue to update. I do know that all the toolbar and other images used will have to be upscaled or changed to higher resolutions. I'll check.

Thanks for the info and offer to help.
Tim Morton
Developer, Bible Analyzer

But to him that worketh not, but believeth on him that justifieth the ungodly, his faith is counted for righteousness. (Rom 4:5 AV)

rokas
Posts: 35
Joined: Fri Sep 25, 2015 1:44 pm

Re: Scaling Issues on Windows 11

Post by rokas »

Sounds good, thank you. For toolbar images, maybe switching to SVG instead of bitmaps could be better in this case? Again, if I could help with anything, just DM me. Thank you and God bless!

Tim
Site Admin
Posts: 1737
Joined: Sun Dec 07, 2008 1:14 pm

Re: Scaling Issues on Windows 11

Post by Tim »

Well...I dived into this scaling matter, and as always, I was neck deep in it before I realized.

Scaling the text was simple enough. The wxWidgets/wxPython people did all the work there. With just a few added lines of code for the BA display windows, the text scaled perfectly. The problems came with the toolbar images, icons, a lot of hard-coded coordinates and padding around frames, image viewer, parallel viewer, devotions viewer, and about everything else. Not only was stuff hard-coded in my code, but several of the libraries were as well. It was a chore to run them all down, even with an AI agent doing most of it.

Then there was the images. I originally had bitmaps for everything, but they don't scale well at all. They do better scaling down but are still not as clear as the native resolution. So after a few attempts I just gave up on them.

To get images that flawlessly scale one must use vector images (mathematically drawn images). Bitmaps don't convert to vectors very well so I decided to replace all of Bible Analyzer's tool images with simple SVGs. Finding, editing, and formatting the dozens of SVGs I needed took several hours. And it took several more to adapt the Bible Analyzer code to use them. Here is a sample image at 200% scaling showing where I am now.

BQI8XGky1F.png
BQI8XGky1F.png (135.29 KiB) Viewed 111 times

One good side affect of using SVGs is it is easy to change the colors, so I added a half dozen colors in Preferences the user can choose from. The color here is "slate."
Tim Morton
Developer, Bible Analyzer

But to him that worketh not, but believeth on him that justifieth the ungodly, his faith is counted for righteousness. (Rom 4:5 AV)

rokas
Posts: 35
Joined: Fri Sep 25, 2015 1:44 pm

Re: Scaling Issues on Windows 11

Post by rokas »

Hi Tim,

this is unbelievable. You did it so quickly and it looks really good, thank you. Cannot wait to try it. Once I can use it again, I will purchase the new add-ons you created, they looked very interesting.

I am also glad you chose to implement SVGs. The icons look great, it looks more modern overall, and the option to choose color is great too. This is also one step closer to implement dark mode option. Have you considered doing dark mode? :D

Post Reply