PCL font selection sequences
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.
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); <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. |
To set up the font selection string for the default font:
|
Links
Font attributes for Specialists