Substitute fonts

Top  Previous  Next

Using the original PCL fonts in a PDF may not be desirable since incorporating the font in the PDF may make it quite large, particularly in the case of bitmap fonts. You may use standard Adobe fonts or any of your Windows fonts for substitution, but note that Windows fonts will only work on systems that also have these fonts. Note that these substitutions will also be used when exporting to Postscript or PCL.

You may use wildcard font names in this substitution process e.g. *bold would select all fonts with names ending in 'bold' and *new* in the font name would select all fonts with names such as 'Times New Roman', 'Courier New' etc. See Wildcards in font substitution.

When you exit from the dialogue the substitutions are saved in a file with extension .SUB.

When a PCL file is opened, EscapeE searches for its substitution file using the following order of priority:

1st: the file specified by the /SUBST option. If the SUBST symbol has not been set, then:

2nd: a file with the same name as the input file but with extension .SUB. If the .SUB file cannot be found:

3rd: the file specified by the SUBSTDEF symbol in the PCLVIEW section of the INI file. If this symbol has not been set, then

4th: a file called DEFAULT.SUB in the same folder as the input file is used.

For example, if the calling line was

escapee /SUBST *.sub /SUBSTDEF c:\escapee\default.sub

or the equivalent definitions had been configured previously then if a file xxx.pcl is opened, EscapeE will try for a file xxx.sub and if that does not exist, use file c:\escapee\default.sub. Note that is the path is omitted from either specification then EscapeE will look in the folder of the PCL file. Hence the command

escapee /SUBST default.sub /SUBSTDEF c:\escapee\default.sub

would look for a file called default.sub in the folder of the PCL file, and failing that revert to the one in folder c:\escapee. More complex possibilities include partial wild cards e.g.

/SUBST ??def.sub

which would use the first two characters of the PCL file name to construct a font substitute file name, so a file xxx.pcl would use xxdef.sub


See also

Viewing font information

Installing fonts

Handling fonts