Ultimaker / Cura

3D printer / slicing GUI built on top of the Uranium framework
GNU Lesser General Public License v3.0
6.14k stars 2.07k forks source link

[4.0] GUI font size on Windows 10 #5507

Open uwezi opened 5 years ago

uwezi commented 5 years ago

Application Version Cura 4.0.0

Platform Windows 10 64bit

Printer doesn't matter, but Wanhao i3

Steps to Reproduce open the application

Actual Results The font size in the settings - both with and without the GREAT sidebar plugin - is incredibly small. There is a lot of unnecessary white space around the text.

Expected results Make the font size scaleable or at least use the Windows standard setting

Additional Information see the screenshots from Cura 3.6 and 4.0 in comparison cura4_sidebar cura_36

prometx commented 5 years ago

Seconded, the font size in this application is comically small. I have to lean into my screen to attempt to read. Can you guys cover my optometrist bill?

nallath commented 5 years ago

Making the font size scalable (all the wile ensuring that the UI will still look good) is a whole lot harder than you'd imagine.

That being said, if you're up for it, it is possible to change the theme files. If you have a look at the resources folder of Cura, you will find a "themes" folder. The "cura-light" is the default theme. In theme.json you will find a bunch of values regarding these sizes. Right at the top you will find a number of fonts, each with modifyiable sizes.

prometx commented 5 years ago

Well, I have a very vivid imagination, and I'm just letting you know. I thank you though for your direction re: the .json file...

fieldOfView commented 5 years ago

A better way than to edit the files in the resources folder is to make a subtheme. Go to Help -> Show configuration folder. The navigate to the "themes" folder there and make a subfolder named "larger". Download the following file and place it in that folder: https://gist.github.com/fieldOfView/7de3ad07fa06afb821bc0c5fe0b668dc

Restart Cura, select the "Ultimaker Larger" in the Theme dropdown on the General preferences and restart Cura again.

Feel free to adjust the "size" values in the file to taste.

Ghostkeeper commented 5 years ago

Our font size is dependent on the system's font scale. This can vary wildly depending on the OS settings (for accessibility etc) and screen DPI settings. And the rest of the interface should scale along for the most part.

That said, I believe our default font size is 95% of the system font size as to create slightly more contrast between important and less important information. Maybe we'd need to get rid of that.

fieldOfView commented 5 years ago

Our font size is dependent on the system's font scale.

Only partly so on Windows: https://github.com/Ultimaker/Uranium/blob/master/UM/Qt/Bindings/Theme.py#L30

Edit: I believe that on windows, the UI scales with the font DPI size, but not with the font size configured in the font preferences.

jonnyasmar commented 4 years ago

A better way than to edit the files in the resources folder is to make a subtheme. Go to Help -> Show configuration folder. The navigate to the "themes" folder there and make a subfolder named "larger". Download the following file and place it in that folder: https://gist.github.com/fieldOfView/7de3ad07fa06afb821bc0c5fe0b668dc

Restart Cura, select the "Ultimaker Larger" in the Theme dropdown on the General preferences and restart Cura again.

Feel free to adjust the "size" values in the file to taste.

Went a tad bigger, switched to PT Sans for good measure, and based mine off cura-dark :) but I can actually read the GUI now. Thank you so much!!

okcoker commented 4 years ago

Not sure if this is relevant to others but in my case, I noticed really small fonts for everything including the menu. Screenshot below:

2020-06-27 05_52_38-Greenshot

I noticed this was because my main display is a 1440p monitor but I was opening Cura on my 2nd 4k monitor. When I make the 4k display my main monitor, the font size is decent as seen below:

2020-06-27 06_21_32-Greenshot

Conversely, moving Cura back to my 1440p monitor makes everything look huge so it seems to me that part of the problem is that Cura doesn't recognize the monitor resolution I'm on.

Gamma36 commented 4 months ago

Making the font size scalable (all the while ensuring that the UI will still look good) is a whole lot harder than you'd imagine.

That being said, if you're up for it, it is possible to change the theme files. If you have a look at the resources folder of Cura, you will find a "themes" folder. The "cura-light" is the default theme. In theme.json you will find a bunch of values regarding these sizes. Right at the top you will find a number of fonts, each with modifiable sizes.

I'm a retired developer. I suggest you consider SVG, which is one way for icons to scale from phones to TV sized monitors.

Also, beta testing is a good way to flush out accessibility issues. With 8K monitors in the pipeline you will eventually have to dynamically scale fonts like Chrome does. It can be done, just plan it in achievable steps.