[Tex/LaTex] font in MATLAB figures (type1 / type3)

fontsMATLAB

I have some figures generated in MATLAB. I want to include the figures in a tex file. First I save the figure as eps format. and then I include the eps file in the latex.
The default font of the figures in MATLAB is Helvetica but after making the Latex file the final PDF file includes type-3 fonts.

Which MATLAB font should I use in my figures that after converting (saving) the figure as eps format and including it in the tex file the font becomes type-1 (embedded subset) in the final PDF?

I have checked this question, but is there any way to change the default font to some more standard font in MATLAB figure and solve the problem without using any external tools?

I use WinEdt7.0 in windows.

Best Answer

I found out that since the default font of the figures in MATLAB is Helvetica, if I change the font to Arial after making the Latex file the final PDF file includes only type-1 fonts.

it is possible to use the following lines of code to change the code while producing the figure:

set(0,'defaultAxesFontName', '<fontname>')
set(0,'defaultTextFontName', '<fontname>')
Related Question