Lemmings Forums

NeoLemmix => Bugs & Suggestions => Closed => Topic started by: namida on November 09, 2021, 06:20:05 PM

Title: [BUG][PLAYER] Level info in level select menu doesn't scale with DPI
Post by: namida on November 09, 2021, 06:20:05 PM
At high DPI, while most elements in the level select menu scale appropriately, the information about the level (or at the very least, the preview image) does not.
Title: Re: [BUG][PLAYER] Level info in level select menu doesn't scale with DPI
Post by: namida on November 10, 2021, 06:40:44 PM
This experimental build should resolve this issue - let me know if it causes any nasty side effects, or (less likely but could happen) doesn't work in certain cases.

EDIT: New exp build in Reply #6.
Title: Re: [BUG][PLAYER] Level info in level select menu doesn't scale with DPI
Post by: WillLem on November 10, 2021, 11:05:29 PM
This experimental build should resolve this issue - let me know if it causes any nasty side effects

This fixes the level info, preview and icon spacing :thumbsup:

However, the font is still the more difficult-to-read one:

Normal (preferred):

(https://i.imgur.com/aPlbqb2.png)
(https://i.imgur.com/pCQby9C.png)

DPI scaled (harder to see/read):

(https://i.imgur.com/foVL9Kf.png)
(https://i.imgur.com/Rfys7kG.png)

Note that the screenshot really doesn't capture how thin and spidery the latter text appears on my screen, but you can at least see that it is a different font.
Title: Re: [BUG][PLAYER] Level info in level select menu doesn't scale with DPI
Post by: WillLem on November 10, 2021, 11:25:32 PM
After a bit of Googling, the "preferred" font appears to be the old Windows system font from Windows 95, 98 and ME, I think it's simply called "MS Sans Serif."

The font with this same name has been changed significantly in Windows 10, which may be why it displays differently when allowed more DPI. It's a mystery as to why the older version of the font is still used at lower DPI settings, but... that's Windows for you, I guess.

However, there are versions of the older font which exist as clones, notably this one (W95FA) (https://www.dafont.com/w95fa.font) and this one (LeviWindows) (https://www.dafont.com/leviwindows.font).
Title: Re: [BUG][PLAYER] Level info in level select menu doesn't scale with DPI
Post by: namida on November 11, 2021, 05:40:16 PM
It likely can be fixed, just a matter of how. Chances are that trying to manually change the font on every individual control - or at least, those that contain text - will result in me missing something, so I'd have to find a way to do an automatic "iterate through everything and if it has a font, change it" type setup.
Title: Re: [BUG][PLAYER] Level info in level select menu doesn't scale with DPI
Post by: namida on November 11, 2021, 06:20:58 PM
^ Okay, wasn't that bad actually. The issue indeed arises from that the default font in Delphi doesn't support antialiasing. It wasn't that hard to change everything to one that does. :)
Title: Re: [BUG][PLAYER] Level info in level select menu doesn't scale with DPI
Post by: namida on November 12, 2021, 12:20:52 AM
Here's a new experimental build which should have everything working nicely. :)
Title: Re: [BUG][PLAYER] Level info in level select menu doesn't scale with DPI
Post by: namida on November 16, 2021, 07:55:18 PM
Closing this topic now as 12.12.2 includes these fixes. Please create a new topic if you find any further issues relating to high DPI.