epsembedfont
Embed fonts to a MATLAB-generated EPS file
Contents
Syntax
epsembedfont(epsfile) epsembedfont(epsfile, outfile) epsembedfont(..., '--Subset') epsembedfont(..., '--Full') epsembedfont(..., '--Encrypt') epsembedfont(..., '--NoEncrypt') epsembedfont(..., '+/-All') epsembedfont(..., '+/-FontName1', '+/-FontName2',...) epsembedfont(..., '+FontName=>EmbedFontName',...)
Description
epsembedfont(epsfile) analyzes the MATLAB generated EPS file specified by epsfile for the fonts used, and embeds all fonts used in the file. The fonts to be embed must be defined in the font search path (epsfontpath) or in the font alias table (epsfontalias).
epsembedfont(epsfile, outfile) saves the modified EPS data to a file specified by outname.
epsembedfont(..., '--Subset') only embeds the minimum subsets of embedded fonts. epsembedfont(..., '--full') conversely embeds full font dictionaries. The default is '--Subset'.
epsembedfont(..., '--Encrypt') eexec encrypts and encodes (ASCII hexadecimal) the Private and CharStrings subdictionaries of the embedded font dictionaries. epsembedfont(..., '--NoEncrypt') removes the encryption, which roughly halves the byte size of font dictionaries but leaves binary data to be exposed in the EPS. The default option is '--Encrypt', and it is recommended to keep encryption on if the EPS file may later be modified by hand.
epsembedfont(..., '+/-All') embeds all ('+All') or none ('-All') of the fonts used in the EPS file. '+All' is the default option if no font name is specified in the optional arguments.
epsembedfont(..., '+/-FontName1', '+/-FontName2',...) specifies fonts to be embedded (with preceeding '+') or to be unembedded (with preceeding '-'). The '-FontName' option can follow '+All' option to specify exceptions.
epsembedfont(..., '+FontName=>EmbedFontName',...) option may be used to force font conversion. For example, '+Courier=>Courier-SH' is equivalent to the default embedding of the Courier font.
Example
See Also
epsfontpath, epsfontalias, epswrite.
Copyright 2012. Takeshi Ikuma. All rights reserved.