Closed samuelestenlund closed 7 months ago
This issue is presumably fixed in the latest release (v3.45).
The issue was originally due to an internal Matlab bug (the print
function incorrectly exports all non-Helvetica contour labels as Courier). The fix in export_fig
is to replace such Courier instances with the correct font name (in the print2eps
function).
Note: If your figure contains multiple unique non-default FontNames, then this cannot be handled automatically; in such a case you can try to use the -regexprep
option to replace '/Courier ' with '/Garamond ' etc.
Let me know if you still see a problem.
Thanks for a very useful package!
But I do have one problem with it. I can't get it to export an eps with the correct font for the label numbers in a contour plot. All the other fonts works, but the numbers on the lines in the contour plot are in Courier instead of Garamond.