Author Topic: [BUG][PLAYER] Level info in level select menu doesn't scale with DPI  (Read 273 times)

0 Members and 1 Guest are viewing this topic.

Offline namida

  • Administrator
  • Posts: 11884
    • View Profile
    • NeoLemmix Website
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.

Offline namida

  • Administrator
  • Posts: 11884
    • View Profile
    • NeoLemmix Website
Re: [BUG][PLAYER] Level info in level select menu doesn't scale with DPI
« Reply #1 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.
« Last Edit: November 12, 2021, 12:22:21 AM by namida »

Offline WillLem

  • Posts: 2221
  • "The quality of light around this time of year..."
    • View Profile
Re: [BUG][PLAYER] Level info in level select menu doesn't scale with DPI
« Reply #2 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):




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.

Offline WillLem

  • Posts: 2221
  • "The quality of light around this time of year..."
    • View Profile
Re: [BUG][PLAYER] Level info in level select menu doesn't scale with DPI
« Reply #3 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) and this one (LeviWindows).
« Last Edit: November 10, 2021, 11:31:01 PM by WillLem »

Offline namida

  • Administrator
  • Posts: 11884
    • View Profile
    • NeoLemmix Website
Re: [BUG][PLAYER] Level info in level select menu doesn't scale with DPI
« Reply #4 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.
« Last Edit: November 11, 2021, 06:20:10 PM by namida »

Offline namida

  • Administrator
  • Posts: 11884
    • View Profile
    • NeoLemmix Website
Re: [BUG][PLAYER] Level info in level select menu doesn't scale with DPI
« Reply #5 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. :)

Offline namida

  • Administrator
  • Posts: 11884
    • View Profile
    • NeoLemmix Website
Re: [BUG][PLAYER] Level info in level select menu doesn't scale with DPI
« Reply #6 on: November 12, 2021, 12:20:52 AM »
Here's a new experimental build which should have everything working nicely. :)

Offline namida

  • Administrator
  • Posts: 11884
    • View Profile
    • NeoLemmix Website
Re: [BUG][PLAYER] Level info in level select menu doesn't scale with DPI
« Reply #7 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.