EscapeE

PCL font selection sequences

PCL font selection sequences

Previous topic Next topic Expand/collapse all hidden text  

PCL font selection sequences

Previous topic Next topic JavaScript is required for expanding text  

In the PCL language a font is selected either by its characteristics or, if it is a downloaded font, by the numeric ID that was assigned when it was downloaded.

Click to expand/collapse this hidden textSelection by ID

The command is
Escape (<id>X
where <id> is a number in the range 0 to 32767.

Click to expand/collapse this hidden textSelection by characteristics

The command is of the form
Escape (s<prop>p<pointsize>v<pitch>h<style>s<weight>b<typeface>T
where:

<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);

<weight> is in the range -7 to +7. ( -3 = light, 0 = normal, 3 = bold etc.)

<style> is 1 if italic, 4 if compressed, 5 if italic compressed;

<typeface> is a 12-bit value with a manufacturer code in the higher bits.Typical values are '3' for Courier, '5' for Times, '52' for Univers. When the code for Compugraphic (the supplier of the resident fonts on an HP printer) is added, these result in codes 4099, 4101 and 4148 respectively.

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:

(s0p0s0b3T

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. Escape )10U. The 'shift out' (hex 0E) character then selects the secondary font, and 'shift in' (hex 0F) the primary.

Click to expand/collapse this hidden textDefault font selection sequence

To set up the font selection string for the default font:

1.Select Configuration... from the Options menu (or press f8) then select the Printer tab.
2.Click the > button (beside the 'Font select' edit box)
3.Select the font Family from the drop-down list.
4.Enter, or use the spin-arrows to select a Point size from the panel.
5.Click Accept, then OK the Configuration.

 


Links

Font attributes for Specialists