Message Boards Message Boards

0
|
6214 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Solved: Linux Interface Toolbar and Font Size

Posted 7 years ago

Thought I'd post something I was struggling with in order to get Mathematica (and any sub-menus it might launch) to display correctly on high resolution monitors in Linux.

The default ScreenResolution is 72dpi in a newly installed Mathematica. My monitor (and almost all modern monitors) use a higher resolution. In my case 96dpi. This means that everything rendered is tiny (it renders to 72/96 of what it was intended to run at). Controlling some fonts fails to control sizes in menus, icons, and tool bars in general. Bits and pieces of Mathematica can be enlarged through font or ScreenResolution changes, but it is difficult at best to get even part of what is too small back to a normal size. So here is how to fix this with a single step...

Setting environment variables like this will fix the issue...note that 96/72, the dpi of actual monitor versus what seems to sometimes be hard coded into Mathematica, is about 1.33. This will correct the issue if starting on command line:

QT_AUTO_SCREEN_SCALE_FACTOR=1 QT_SCALE_FACTOR=1.33 Mathematica &

Starting Mathematica like this will allow the palettes, icons, buttons, and window frames to enlarge uniformly.

POSTED BY: Dan Stimits
Posted 26 days ago

This works perfectly, if you want to run it from the GUI instead of using the terminal you can simply add the following lines

export QT_AUTO_SCREEN_SCALE_FACTOR=1.5
export QT_SCALE_FACTOR=1.7

To the place where you installed the Wolfram Mathematica, in my case usr/local/Wolfram/Mathematica/14.0/Executables and there should be a file named Mathematica, where you can add this two lines, so now you can just open the software from the user interface without running the terminal.

POSTED BY: Jorge Carabali
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract