Menubar fonts unreadably small in Linux?

84 visualizaciones (últimos 30 días)
Alasdair McAndrew
Alasdair McAndrew el 16 de Oct. de 2016
Comentada: john el 18 de En. de 2025 a las 21:39
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!
  5 comentarios
john
john el 18 de En. de 2025 a las 21:39
This is actually fixable with the following post:
Important to restart Matlab to see the effect pon the toolstrip for example
MATLAB supports High DPI screens on Linux starting from R2017b.
Tuning a high-DPI Linux system requires two steps:
  1. Setting the MATLAB scale factor.
  2. Calibrating the system's DPI
The MATLAB scale factor affects MATLAB desktop and the size/position of windows.
The system DPI determines the scale and font size of axes and labels.
The two tuning steps are described below:
STEP 1: To set the MATLAB scale factor, please execute the following commands in the MATLAB Command Window:
>> s = settings;
>> s.matlab.desktop.DisplayScaleFactor
>> s.matlab.desktop.DisplayScaleFactor.PersonalValue = 1.5
Here the scale factor has been set to 1.5.
STEP 2: To calibrate the system's DPI to match the scale factor, please use the following terminal commands:
% xdpyinfo | grep resolution
resolution: 96x96 dots per inch
% xrandr --dpi 144
The DPI value chosen should be the resolution found with "xdpyinfo" multiplied by the MATLAB scale factor that was set. In the example, 96 × 1.5 = 144.
MATLAB must be restarted after Step 2.

Iniciar sesión para comentar.

Respuestas (1)

Prasad Mendu
Prasad Mendu el 19 de Oct. de 2016
Editada: Prasad Mendu el 19 de Oct. de 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 comentarios
bas jacobs
bas jacobs el 23 de En. de 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
Daniel el 17 de En. de 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!

Iniciar sesión para comentar.

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by