How to change the font size ?

Asked by Hannes Böhm

I am using Stellarium on a 37" 1080p screen. Unfortunatly allmost all text is to small to read. How can I increase the font size ?

base_font_size in the [gui] section of config.ini seems to do nothing at all.

Question information

Language:
English Edit question
Status:
Answered
For:
Stellarium Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Matthew Gates (matthew-porpoisehead) said :
#1

The GUI font sizes can be changed by editing the <install_dir>/data/gui/normalStyle.css and nightStyle.css files

Fonts for labels can be set from a script, e..g

  SolarSystem.setFontSize(20);
  ConstellationMgr.setFontSize(20);
  StarMgr.setFontSize(20);

If you want this to be run each time you start the program make a sub-directory in your <user-data-dir> called "scripts", and edit the file startup.ssc to include the content above.

If you want to try out the new sizes without going through the laborious process of editing the file and re-starting the program each time you change the setting, open the script console (press F12 on a recent version of Stellarium), and copy-paste the script there, then click the run button, or press control-return to execute the script. You should see the results straight away. When you are happy you can save the script as <user-data-dir>/scripts/startup.ssc.

Enjoy
Matthew

Can you help with this problem?

Provide an answer of your own, or ask Hannes Böhm for more information if necessary.

To post a message you must log in.