[BUG][PLAYER] Level info in level select menu doesn't scale with DPI

Started by namida, November 09, 2021, 06:20:05 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

namida

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.
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

namida

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.
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

WillLem

Quote from: 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

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

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

Normal (preferred):




DPI scaled (harder to see/read):




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.

WillLem

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) and this one (LeviWindows).

namida

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.
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

namida

^ 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. :)
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

namida

Here's a new experimental build which should have everything working nicely. :)
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

namida

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.
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)