In the PCL language, a font is selected either by its characteristics or, if it is a downloaded font, by a numeric ID that was assigned when it was downloaded. Many documents, however, specify their fonts by name. RedTitan products (e.g. DDF, DSC) manage 'named' fonts using the alphanumeric ID command:
where string is the name and # is the byte count of Fontstring. For example
This is particularly useful when a document uses library fonts only, see PCL export options. Using this mechanism, EscapeE can uniquely identify matching fonts in its library, independent of the printer (printers ignore the command).
Where standard character names occur in AFP input, Unicode values are assigned automatically.
The command is
The command is of the form
<prop> is 1 if proportional, 0 if fixed pitch;
<pointsize> can have up to two decimal places and specifies the height in points;
<pitch> can have up to two decimal places and specifies the pitch in characters per inch (CPI);
<style> integers, e.g. is 1 for italic, where 0 is a regular upright style: see list;
<weight> is in the range -7 to +7, where 0 = normal: see list;
<typeface> is the name of any RFF or TrueType font currently installed or your system or
It is not compulsory to specify all the above characteristics, in which case the sequence should be terminated on an UPPER CASE letter. The sequence is shown in the font list, with any unmatched characteristics shown in red. For example:
The sequences above are described in terms of the primary font, and the secondary font uses similar syntax – but with right bracket instead of left bracket e.g.
The 'shift out' (hex 0E) character then selects the secondary font, and 'shift in' (hex 0F) the primary.