What is the default figure font in Matlab 2014b?

90 views (last 30 days)
Razvan
Razvan on 7 Oct 2014
Answered: Adam Danz on 26 Mar 2020
Hi, I tried to import in Illustrator an eps figure created with Matlab 2014b but I get a warning that some font is not installed:
"The document uses fonts or characters which are not available or are in a different format than originally specified.
any:
Font not found on the system; missing font has been substituted."
What is the new font that is used by default in the figures of the latest Matlab version (2014b)? Isn't this just Helvetica, as before?

Answers (2)

Bruno Pop-Stefanov
Bruno Pop-Stefanov on 8 Oct 2014
The default font should be Helvetica. You can check that before printing the figure to an EPS file using:
>> get(gca, 'FontName')
In my case, it returns Helvetica:
figure
plot(rand(10))
title('A Title')
xlabel('xlabel')
ylabel('ylabel')
>> get(gca, 'FontName')
ans =
Helvetica
You can try to change to another font and see if you still can't import the EPS file correctly into Illustrator.
For example:
>> set(gca, 'FontName', 'Tahoma')

Adam Danz
Adam Danz on 26 Mar 2020
To get default font properties without the need to create an axes,
get(groot, 'defaultAxesFontName')
get(groot, 'defaultAxesFontSize')
get(groot, 'defaultAxesFontWeight')
get(groot, 'defaultAxesFontAngle')

Categories

Find more on Printing and Saving in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!