My laptop has a 17 inch 4k screen, running Windows 10 and Ubuntu 1604. Both systems are set to 2x scaling. But Mathematica 11 (released 2016-08-08) is still blurry like version 10. Is there a simple fix to this problem?
The best thing to do, IME, is to set the default notebook zoom level to something higher. This way, the text is rendered crisply and at a reasonable size.
You can do that as follows:
- Go to
Open Option Inspector
Show option valuesto
- Go to
- Go to
- Change magnification to whatever works for you.
Now, "100%" (default mag) will be rendered at whatever magnification you chose here.
Mathematica 11.2 seems to use Qt 5.6 framework which supports DPI scaling override. At least on Linux, it's possible to get bearable results by starting Mathematica as follows:
QT_SCALE_FACTOR is an environment variable that defines UI scaling. It seems to work quite well except for the splash screen.
After a long wait, finally, Mathematica 12.1, launched in March 2020, introduces full support for high DPI monitors for both Windows and Linux. The upgrade from previous versions of Mathematica is beautifully impressive on a high-DPI screen!
I just wanted to add up to the answer by divenex.
Indeed, since version 12.1 Mathematica can perform a proper Hi-DPI scaling. I tried it on Ubuntu 20.04 LTS and the result was satisfying everywhere, except the initial splashscreen that is still somewhat broken. Both the UI elements and notebook contents, including code suggestions, scale correctly.
One non-trivial trick I wanted to mention, that could save someone's time:
In order to achieve proper scaling, one should navigate to
Format → Object Inspector → Global Preferences → Global Options → System Configuration and set
ScreenResolutionCompatibilityMode → False. Then inside the field
ScreenInformation in the same panel, one should set
xxx can be obtained by running
xdpyinfo | grep resolution in Ubuntu.
Quick demonstration. Before:
And after the aforementioned modification: