MATLAB Answers

Blurry font on Ubuntu 16.04 with R2016b

24 views (last 30 days)
Jeffrey Tackett
Jeffrey Tackett on 3 Oct 2016
Commented: Walter Roberson on 7 Nov 2016
After installing R2016b for the first time on an Ubuntu machine, I'm noticing a lot of font issues where it starts out fine and then suddenly gets very blurry. It happen with test practically everywhere: Worspace variable names, current folder pane, command window, and even the toolstrip. Ususally clicking on the blurry font will cause it to re-render and get drawn correctly, but this issue continues to happen as I run MATLAB scripts.
See attachments for pictures of the workspace and the issue I am describing.
Any help is much appreciated.
Regards, Jeff


Garoe Dorta
Garoe Dorta on 6 Nov 2016
There are some incompatibilities with the libc and the java version.
To get the right libc install matlab-support and and replace the libraries when asked
sudo apt-get install matlab-support
  1. Matlab 2016b is not compatible with openjdk8, install 7 and force matlab to use it
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-7-jdk
echo 'export MATLAB_JAVA=/usr/lib/jvm/java-7-openjdk-amd64/jre/' >> ~/.profile
The splash screen also tends to be a source of problems, deactivate it with the following
sudo sed -i "s:Exec=matlab -desktop:Exec=matlab -desktop -nosplash:g" /usr/share/applications/matlab.desktop
After running everything reboot to make sure the changes were applied.
To manually check the java version used by matlab run the following inside matlab
version -java
Hopefully that will solve the issues.
Walter Roberson
Walter Roberson on 7 Nov 2016
Garoe Dorta, I suggest you make that into an Answer.

Sign in to comment.

Answers (0)