Menubar fonts unreadably small in Linux?
109 views (last 30 days)
Show older comments
This is a question which has been asked before, but to which I haven't been able to find a satisfactory response. I'm using Matlab R2016b on Linux, with a HiDPI screen (2560x1440) on a laptop - so a lot of pixels squeezed into a small space. And the standard menu fonts are tiny - so tiny that I have to squint carefully to read them.
I understand this to be in some way related to the Java system that Matlab uses for its GUI, but I have no idea how to increase the size of the menubar/toolbar fonts and icons. It's not included in Matlab's preferences; from my reading I believe that these are picked up somehow from the underlying OS. Or more accurately, from the underlying Java engine.
Currently, if I want to use Matlab with readable menus, I have to change my desktop resolution to a lower one, which of course affects every other application. So I'm hoping there's a better way?
Thanks!
7 Comments
Ton
on 23 Dec 2025
I have a similar problem on Matlab R2025b running on Ubuntu 25.10. The fonts in the desktop (menus, filelist, etc.) are INCREDIBLY small, and not only on a high resolution (external) screen, but also on the standard 1080p laptop screen. I tried the solution mentioned by John, but changing the personal value of the DisplayScaleFactor and calibrating the DPI as suggested (plus restarting Matlab) does not have any effect on this at all.
I have to add that I am not an experienced Linux user, and that this is the first time I have tried to run Matlab on Linux, so I may well have made a trivial rookie mistake...
Devansh Royal
on 13 Jan 2026 at 23:08
I have the same issue as Ton on Ubuntu 25.10 with Matlab R2025b
Answers (2)
Prasad Mendu
on 19 Oct 2016
Edited: Prasad Mendu
on 19 Oct 2016
Unfortunately the Linux version of MATLAB does not support high DPI screens on Linux yet. Refer this documentation page for more information
The possible workarounds mentioned below may help improve the visual appearance:
(a) You can increase font sizes of text in the different windows. However, the icon or font size of the toolbar cannot be changed.
(b) You can switch the high DPI monitor to a lower screen resolutions of 1920x1080 or as preferred. Follow the steps below to change the screen resolution:
1. Go to the OS Display control setting window
2. Click on the "Display" tab. A slider menu with the title "Scale for menu and title bars:" should be set to either 0.5 or 1. Click Apply.
3. Click on the "Reduce Resolution" tab and set it to 1920 x 1080 (16:9). Click Apply.
(c) You can connect a lower resolution monitor.
15 Comments
bas jacobs
on 23 Jan 2023
Exactly, and not on IDE's which they make available for free. Yet they manage to do a decent job at it, including the part where high DPI displays are involved, even in the niches of the Linux ecosystem. In shrill contrast, the Mathworks has Matlab as one of their main products which they charge a lot of money for, and they don't even manage to get High DPI display support right for a single dominant Linux distribution.
Bottom line, Mathworks, please, fix the problem. Thank you.
Daniel
on 17 Jan 2024
Lame Mathworks. 2024a betas till unable to display a readable help window, way too small Ctrl + + doesn't work on Fedora linux, but Ctrl + - does, which means reducing font size is irreversiblly smaller!
zuyuan
on 19 Jan 2026 at 12:11
Hi guys,
I have solved this problem.
use the following command in MATLAB:
s = settings;
s.matlab.desktop.Zoom.PersonalValue = 200;
This command will scale the entire MATLAB app, include the menubar.
I have a 32 inch monitor with resolution of 3840*2160, and set the ‘PersonalValue’ to 200 is suitable for me, you can also try other values that you like.
My PC is Ubuntu 22.04.5 LTS, MATLAB verison is 2025a.
2 Comments
Devansh Royal
on 19 Jan 2026 at 17:13
Edited: Devansh Royal
on 19 Jan 2026 at 17:34
Thank you so much! Worked like a charm for the MATLAB app on my Ubuntu 25.10 pc for 2025b. Is there a similar command for simulink?
zuyuan
on 20 Jan 2026 at 6:29
After I input the command mentioned above, then I open simulink, the menubar is already scaled as in matlab itself, it works on my PC.
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!