1

I am running OpenSuse Leap 42.2 and have just recently noticed, that the titles of my MATLAB figures look weird:

enter image description here

As you can see, the spacing is strange and I also have a different font in mind. Any ideas on how to fix this problem?

Rody Oldenhuis
  • 37,726
  • 7
  • 50
  • 96
Thomas
  • 1,199
  • 1
  • 14
  • 29
  • I think it should be something with `set(gca,'FontSize',30,'FontName', Cambria)' for ex. for earlier than 2014 releases ( I think) http://stackoverflow.com/questions/8934468/changing-fonts-in-matlab-plots – RMS Dec 21 '16 at 09:56

2 Answers2

0

I had the same problem on linux. What you can do is to set the font for every figure manually to a default matlab font or write a script which does it for you.

Gustavo
  • 919
  • 11
  • 34
  • it can be done globally if you access the object handles of your graphics. check axes properties – RMS Dec 21 '16 at 09:58
0

I don't know why that happens (missing font in OpenSuse?), but you can set the default figure font globally:

set(0, 'DefaultAxesFontName','Cambria');

Include this in your startup.m for convenience.

Rody Oldenhuis
  • 37,726
  • 7
  • 50
  • 96