From: Jared on
I recently discovered export_fig, which appears to be an excellent tool for creating nice vector figures. However, for compatibility reasons as well as personal preference, I would like to export the figure to pdf and/or eps with Myriad rather than Helvetica. However, when I try to create a pdf or eps using export_fig with Myriad Pro, I end up with Courier. I am new to ghostscript, etc., so I am not sure how one goes about this.

Any help would be very appreciated. Thanks!
From: Oliver Woodford on
"Jared " <who.would.use(a)gmail.com> wrote in message <hqqees$m9m$1(a)fred.mathworks.com>...
> I recently discovered export_fig, which appears to be an excellent tool for creating nice vector figures. However, for compatibility reasons as well as personal preference, I would like to export the figure to pdf and/or eps with Myriad rather than Helvetica. However, when I try to create a pdf or eps using export_fig with Myriad Pro, I end up with Courier. I am new to ghostscript, etc., so I am not sure how one goes about this.
>
> Any help would be very appreciated. Thanks!

Hi Jared

Sorry, I misunderstood your question on the comments board. Take a look at:
http://www.mathworks.com/access/helpdesk/help/techdoc/creating_plots/f3-103191.html#f3-96545

Oliver
From: Jared on
So, one can only use the few ghostscript supported fonts with export_fig? Is there an easy way to go back and change them to something else, eg Myriad Pro, afterward?
From: Oliver Woodford on
"Jared " wrote:
> So, one can only use the few ghostscript supported fonts with export_fig? Is there an easy way to go back and change them to something else, eg Myriad Pro, afterward?

When exporting as vector graphics, yes, you're limited to the fonts output by print. You could save the figure as a pdf and open it in a vector graphics package like Adobe Illustrator, Adobe Acrobat or Inkscape (free), then change the fonts in there. I think Illustrator (and probably Acrobat) has the ability to replace all fonts of a given type in a single process.

MATLAB's print function has so many issues (I discovered another one yesterday - printing scatter plots with 100000s of points is unbelievably slow!), and export_fig solves a lot of them, but unfortunately not all. Having said that, I'm adding new workarounds for issues all the time, so perhaps this will be fixed in the future. For now I'm afraid you're stuck with the suggestions above.

HTH,
Oliver