I just upgraded to R2014b. When exporting figures via "print -depsc" the resulting EPS files have weird fonts embedded that are unreadable by Adobe Illustrator. Is there anything I can do to fix this? I want to go back to exporting with helvetic or arial font.

Answer by JanikKk
on 14 Jul 2016

Workaround

I have the same issue with Matlab R2015a. When I try to open the exported .eps file (a simple x-y plot) in Illustrator (CS6) I get an error message, which says that a couple fonts are missing: mwa_cmmi10, mwb_cmmi10, etc and Illustrator will replace them. I used the Latex interpreter in the axes labels, "cmmi" indicates that Matlab used the computer modern font family, which is the typical Latex font family. The only problem is that Matlab, for some reason, added the "mwa_" or "mwb_" in front of the actual font names, which are embedded in the file. These font names do not exist in the system (I'm using Mac) and therefore Illustrator cannot access them.

What worked for me:

- Make your plots in Matlab, save them as .eps with whichever font you want
- Download the font family you used or check if it's already installed on your system (common fonts like Helvetica (on Mac), Times, etc are usually already installed. The Latex fonts//the computer modern family can be found on the internet)
- Open the eps.-file with Illustrator and click "ok" when the error message about the missing font pops up
- Now go to "Fonts --> Find Font..."
- The "Find font" dialogue shows which fonts are in your document. Missing fonts are displayed with an asterisk*.
- Replace these fonts with the corresponding font availabe in your system. For me it was "mwa_cmmi10" --> "cmmi10" in regular and "mwb_cmmi10" --> "cmmi10" in bold.

(This did not solve all of my font problems but at least 90%. Still having problems with some math symbols) Check: https://helpx.adobe.com/illustrator/using/find-missing-fonts.html

Sign in to comment.

Answer by matt dash
on 13 Oct 2014

Jeff
on 14 Oct 2014

Sign in to comment.

Answer by Erik Johnson
on 4 May 2016

Edited by Erik Johnson
on 4 May 2016

This is still a problem in 2016a. Inexcusable that this has not been fixed in 2 years of releases.

plot([0 1],[0 1]);

xlabel('This is {\it{italic}}.')

ylabel('This is {\sl{slanted}}.')

print -depsc2 test.eps

"italic" and "slanted" are both set in the EPS file to be "Helvetica-Italic", which, of course, does not exist. The correct font is "Helvetica-Oblique" -- and has been for decades! This worked fine prior to HG2.

Razvan
on 7 May 2016

Sign in to comment.

Answer by Ema
on 15 Jan 2019

Hi All,

I have the same problem. I do not have Helvetica. Therefore I did a different test.

I saved the figure using Arial font. Result: AI still misses Helvetica... I found this weird.

Then I did a trick: I converted my matlab eps into pdf. In pdf it result correct (Arial font).

When imported in AI the pdf is also correct and recognize the arial font, without asking for Helvetica.

I am wondering if it is practical to save directly editable pdfs from matlab or alternatively convert the eps in pdf.

My suspect is that the problem is not matlab, rather AI.

What you think?

I am using Matlab R2018b

Sign in to comment.

Answer by Jeff
on 9 Oct 2014

I wanted to provide an update with more details of my problem. In Matlab R2014a and earlier, the figure I want to make looks like:

I plotted this using standard plot commands and exported as an EPS file using the "print -depsc filename.eps" command. I have done this for over a decade in many versions of Matlab. It always works the same. The uploaded figure is generated after opening in Adobe Illustrator CS6 and exporting as a PNG since EPS files can't be displayed online easily.

Now, if I run the exact same script in the new release, Matlab R2014b, the figure looks the same in Matlab, but the exported EPS file looks like:

Most critically, the fonts no longer pass through. I had Helvetica plus a symbol font before. Now, despite the fonts showing up fine in Matlab, the fonts in the EPS figure are all screwed up. Illustrator gives an error when opening the file that says it cannot find the fonts "any:" and "any-Bold:". This has to be something to do with the new graphics component of Matlab R2014b, but I don't know what code to use to get around this since the code that has worked for a decade no longer works. I'm not doing anything weird.

I should also not that the print command takes a lot longer to run. Bracketing the command with tic and toc gives 0.25 seconds in R2014a but 3.08 second in R2014b. Something is really messed up with R2014b but I am hoping there is some sort of work around. For now I will keep using Ro2014a but welcome any suggestions.

Bruno Pop-Stefanov
on 10 Oct 2014

What if you don't use bold fonts but just regular fonts?

Jeff
on 13 Oct 2014

Elizabeth Jones
on 2 Dec 2014

Sign in to comment.

Answer by Doug Hull
on 13 Oct 2014

Edited by Doug Hull
on 13 Oct 2014

From the printing developer:

The issue is that Illustrator complains about a missing Helvetica font when the file is imported. This is true in HG1 as well. We don't embed the font in our generated output file and if the font isn't installed locally on the system Illustrator won't find it.

It's funny in a way, given that Helvetica is one of the standard Adobe Postscript fonts and Adobe Illustrator doesn't provide support for it

Make sure AI has access to the font.

Can you send reproduction steps directly to hull @ mathworks.com

Jeff
on 11 Jul 2017

Walter Roberson
on 11 Jul 2017

Jeff, what was Mathwork's response when you opened a technical support case on this matter?

Jeff
on 6 Mar 2018

Sign in to comment.

Answer by yserra
on 10 Feb 2015

Jeff
on 15 Feb 2015

Stewart Smith
on 13 Dec 2015

Walter Roberson
on 13 Dec 2015

Stewart, what was Mathwork's response when you opened a technical support case on this matter?

Sign in to comment.

Answer by Brian
on 20 Feb 2015

Sign in to comment.

Answer by Razvan
on 29 Jan 2016

Sign in to comment.

Opportunities for recent engineering grads.

Apply Today
## 8 Comments

## matt dash (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/157888-font-problems-when-exporting-as-eps#comment_241729

## Jeff (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/157888-font-problems-when-exporting-as-eps#comment_242001

## Gideon simpson (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/157888-font-problems-when-exporting-as-eps#comment_247608

## Robert Womersley (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/157888-font-problems-when-exporting-as-eps#comment_258988

## Luigi Feriani (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/157888-font-problems-when-exporting-as-eps#comment_260192

## Ian Harris (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/157888-font-problems-when-exporting-as-eps#comment_262469

## Jeff (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/157888-font-problems-when-exporting-as-eps#comment_272442

## povilas ambrasas (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/157888-font-problems-when-exporting-as-eps#comment_318317

Sign in to comment.