Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hypertext font size doesn't scale with window size #13568

Closed
Zughy opened this issue Jun 7, 2023 · 5 comments
Closed

Hypertext font size doesn't scale with window size #13568

Zughy opened this issue Jun 7, 2023 · 5 comments

Comments

@Zughy
Copy link
Contributor

Zughy commented Jun 7, 2023

Minetest version
5.7.0, 5.6.0 and so on
OS / Hardware

Happens on different hardware and different OS

Summary

Title. Every text in the following screens is a hypertext

about 1920x1080
image

about 1280
image

about 1000
image

about 600
image

Steps to reproduce

Join A.E.S. server and open your Block League profile (the one in the screen) by doing /bleague profile

@Zughy Zughy added Unconfirmed bug Bug report that has not been confirmed to exist/be reproducible @ Script API Formspec UI/UX labels Jun 7, 2023
@vintprox
Copy link
Contributor

Remotely related: if you use a wider text font, like OpenDyslexic, it's going to eventually push some boundaries in this pixel-fixed layout.

@wsor4035 wsor4035 added Bug Issues that were confirmed to be a bug and removed Unconfirmed bug Bug report that has not been confirmed to exist/be reproducible labels Oct 6, 2023
@sfan5
Copy link
Collaborator

sfan5 commented Nov 22, 2023

How does this relate to #13858?

@Zughy
Copy link
Contributor Author

Zughy commented Nov 22, 2023

@sfan5 tested on latest dev, both with and without fixed size in size[] fs element. Still the same

@grorp
Copy link
Member

grorp commented Aug 24, 2024

  • Scaling font size with window size wouldn't make sense. This isn't done anywhere else in Minetest and I haven't seen it being done in other software either.

    Why would the user want a smaller, less readable font size just because they're using a smaller window? How would you determine the "standard window size" that corresponds to the "standard font size" for scaling?

  • The real problem in your example is that formspec coordinates (GUI elements) scale with window size. This doesn't make much sense, Minetest is the only software I know doing this. This is something the formspec replacement will hopefully do better.

    This behavior can be disabled via fixed-size formspecs, i.e. size[x,y,true]. This should fix the problem in your example. I just joined A.E.S. and did /bleague profile. The problem is actually already fixed there, the formspec has already been changed to be fixed-size.

  • Improve formspec scaling #14840 would have fixed your example too, without needing to make the formspec fixed-size. It basically stops formspecs from scaling down with window size too far until it's actually necessary.

@Zughy
Copy link
Contributor Author

Zughy commented Aug 24, 2024

Thank you @grorp for looking into this, closing then :)

@Zughy Zughy closed this as not planned Won't fix, can't repro, duplicate, stale Aug 24, 2024
@grorp grorp removed the Bug Issues that were confirmed to be a bug label Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants