Fixes font issues on Matlab EPS figure outputs.
epsfixfonts(EPSFILE) epsfixfonts(EPSFILE,OUTFILE) epsfixfonts(...,EMBEDSYMBOL)
EPSFIXFONTS(EPSFILE) analyzes the MATLAB-generated EPS file specified by the string EPSFILE and fixes the font-related issues in the file.
The main fix is to embed missing AMS LaTeX fonts. Some versions of Matlab are not equipped with the full library of the AMS LaTeX math fonts (namely, they are missing Computer Modern san serif fonts, mwa_cmss10, mwa_cmssbx10, and mwa_cmssi10). Consequently, these fonts are not properly embedded in the EPS file, resulting in incorrectly rendered equations in EPS. EPSFIXFONTS properly embeds these missing fonts (only if used) to EPSFILE.
EPSFIXFONTS(EPSFILE,OUTFILE) saves the modified EPS data to a file specified by the string OUTFILE.
EPSFIXFONTS(...,EMBEDSYMBOL) in addition embeds a public-domain font (StandardSymL) for Symbol font, which is used for all TeX expressions used in the Matlab figures.
The exact items changed in the EPS file are as follows: 1. Embed all missing AMS LaTeX fonts and (if requested) Symbol font. 2. '%%DocumentNeededFonts' header entry is replaced with the pair of '%%DocumentNeededResources' and '%%DocumentSuppliedResources'. The replaced entries completely lists all the fonts used. 3. All '%%BeginDocument' - '%%EndDocument' pairs are replaced with '%%BeginResource' - '%%EndResource' pairs 4. All embedded font definitions (each begins with '%%BeginResource' and ends with '%%EndResource') are moved to the Prolog block.
For the details of EPS file format and specification, consult the PDF documents on the following link: http://partners.adobe.com/public/developer/en/ps