HP PCL/PJL reference (PCL 5 Printer Language) - Technical Reference Manual Part II
EN SR, Relative Character Size 23-83
Example:Using the SR Command 
The following example first shows a label with a character size 
relative to P1 and P2 (SR). Next, the locations of P1 and P2 are 
changed; then, the character size percentages are specified. Notice 
that the new character size has equal parameters of 2.5; because 
the P1/P2 area is square, the resulting characters are square.
Table 23-51 Example: Using the SR Command
E
C
E  Reset the printer.
E
C
%0B  Enter HP-GL/2 mode.
IN; Initialize HP-GL/2 mode.
SP1;  Select pen number 1. Even though there is 
no physical pen, the SP command must be 
used to enable printing.
IP-6956,-4388, 
6956,4388;
Move P1 to (-6956,-4388) and P2 to 
(6956,4388).
DT@;  Specify “@” as the label terminator.
SR;PA0,2700; 
LBRELATIVE 
LABEL SIZE@;
Default the character size as a percentage 
of the P1/P2 rectangle, move the pen to 
(0,2700), and print “RELATIVE LABEL 
SIZE.”
IP0,0,5500,5500; 
PA0,2000; 
Move P1 to (0,0) and P2 to (5500,5500), 
then move the pen to (0,2000).
LBNEW P1 AND P2 
CHANGE LABEL
SIZE@;
Print “NEW P1 AND P2 CHANGE LABEL 
SIZE.”
PA0,1000;SR2.5,2.5;  Move to (0,1000) and set the character size 
to 2.5% by 2.5% of the P1/P2 rectangle.
LBNEW SRm 
INSTRUCTION@;CP
;
Print “NEW SR INSTRUCTION” and send 
CP for Carriage Return/Line Feed.
LBCHANGES 
LABEL SIZE@; 
Print “CHANGES LABEL SIZE.”
E
C
%0A  Enter the PCL mode.
E
C
E  Send a reset to end the job and eject the 
page.










