stellarium icon indicating copy to clipboard operation
stellarium copied to clipboard

ScreenFontSize misbehaviour

Open hml-s opened this issue 8 months ago • 10 comments

Changing the screenFontSize changes the absolute scale of stars but it does not increase Cardinals fontSize, Compass fontSize or cross.png.

Furthermore, I would like to suggest increasing the maxvalue of lines and fonts.

Unrelated... perhaps it is a good idea to include the orbital nodes of the Moon; that is, the two points at which the orbit of the Moon intersects the ecliptic.

hml-s avatar Apr 25 '25 14:04 hml-s

What version of Stellarium are you using? Cardinals' size changes fine for me. Compass is indeed unaffected. As for the marker, if we choose to scale it, I suppose the selection indicator pointeur2.png should then also be scaled (and maybe the other "pointeurs" too).

10110111 avatar Apr 25 '25 14:04 10110111

re the unrelated: We have no model that directly provides the nodes, as Lunar position is computed "directly". You can observe them by drawing Lunar orbit.

gzotti avatar Apr 25 '25 14:04 gzotti

Some parts of changing the font only takes action after a restart.

Atque avatar Apr 25 '25 14:04 Atque

What version of Stellarium are you using? Cardinals' size changes fine for me. Compass is indeed unaffected. As for the marker, if we choose to scale it, I suppose the selection indicator pointeur2.png should then also be scaled (and maybe the other "pointeurs" too).

Right now I am on 24.3, the reason being that on this version the abs scale of the stars remain fixed as they should. I actually reverted from 25.1.

I will test 25.1 again in a minute, and will edit this post when I know more about the cardinals/compass. I mention cross.png because I know this item used to scale with screenfontsize a few years ago.

Edit, I've just tested 25.1, indeed the Cardinals does change with screenFont as it should, however compass does not, compass changes with the guiFont!

hml-s avatar Apr 25 '25 14:04 hml-s

Changing the screenFontSize changes the absolute scale of stars

The absolute scale of stars shouldn't be touched by screenFontSize parameter IMHO

alex-w avatar Apr 25 '25 14:04 alex-w

Changing the screenFontSize changes the absolute scale of stars

The absolute scale of stars shouldn't be touched by screenFontSize parameter IMHO

Agreed, this only started after 24.3; 24.3 functions as it should.

hml-s avatar Apr 25 '25 15:04 hml-s

Cardinals::updateFontSizes() is indeed weird, as it prefers config.ini values over live settings.

gzotti avatar Apr 25 '25 15:04 gzotti

re the unrelated: We have no model that directly provides the nodes, as Lunar position is computed "directly". You can observe them by drawing Lunar orbit.

I see, I thought about it more like the 0⁰ point where the ecliptic crosses the equator, but I understand both have grids. Would be cool to see more lunar points in the future like nodes but also lunar apogee/perigee derived by its distance.

hml-s avatar Apr 25 '25 21:04 hml-s

The absolute scale of stars shouldn't be touched by screenFontSize parameter IMHO

Well, this was done in #4111, and the config parameter name simply wasn't changed, while its meaning is now not just about the font.

10110111 avatar Apr 26 '25 07:04 10110111

The absolute scale of stars shouldn't be touched by screenFontSize parameter IMHO

Well, this was done in #4111, and the config parameter name simply wasn't changed, while its meaning is now not just about the font.

That is actually makes sense and I think is a good idea, however the gridlines are not altered by this, while the constellation lines are. Also the compass markers reacts to GUI and not to screenFont.

But to be honest I think screen settings and Font settings should be separated, perhaps by another spinbox. If I wanted to increase the font without changing lines/stars then I am now caught in a bind. Being able to adjust them separately I think is preferred.

hml-s avatar Apr 26 '25 15:04 hml-s

@gzotti your fix introduced another bug :(

To reproduce:

  • Show some celestial point in "Markings" tab
  • Increase point size for markers (for example, 15 - you will see big marker and label with "normal" font size)
  • Try to increase screen font size - you will see reset the size of marker

alex-w avatar Sep 15 '25 15:09 alex-w

How do you increase point size for markers from the GUI? I only saw the scripting function, GridlineMgr.setPointSize(s)

gzotti avatar Sep 15 '25 15:09 gzotti

How do you increase point size for markers from the GUI? I only saw the scripting function, GridlineMgr.setPointSize(s)

Obvious place - "Markings" tab, bottom of middle column, where you can see tools for changing thickness of lines and parts also.

alex-w avatar Sep 15 '25 15:09 alex-w

Ah, so they then need no auto-scale!

gzotti avatar Sep 15 '25 15:09 gzotti

Hello @hml-s!

Please check the fresh version (development snapshot) of Stellarium: https://github.com/Stellarium/stellarium-data/releases/tag/weekly-snapshot

github-actions[bot] avatar Sep 17 '25 17:09 github-actions[bot]

Hello @hml-s!

Please check the latest stable version of Stellarium: https://github.com/Stellarium/stellarium/releases/latest

github-actions[bot] avatar Sep 29 '25 17:09 github-actions[bot]