HP PCL/PJL reference (PCL 5 Printer Language) - Technical Reference Manual Part II

EN SR, Relative Character Size 23-81
SR, Relative Character Size
This command specifies the size of characters as a percentage of the
distance between P1 and P2. Use SR to establish relative character
size so that if the P1/P2 distance changes, the character size adjusts
to occupy the same relative amount of space.
SR width height[;]
or
SR [;]
While the SR command is in effect (with or without parameters),
changes in P1 and P2 affect the size of characters in the currently
selected font.
z No Parameters— Defaults the relative character width to 0.75%
of the distance (P2X – P1X) and the height to 1.5% of the
distance (P2Y – P1Y).
z Width— Sets the character width to the specified percentage of
the distance between the X-coordinates of P1 and P2. A negative
width parameter mirrors labels in the right-to-left direction.
Note Changing character size also changes the apparent stroke weight of
labels; the printer adjusts characters relative to changes in P1/P2. As
long as the aspect ratio remains the same with changes in P1/P2,
characters will have the same appearance relative to the new P1/P2
rectangle.
z Height— Sets the character height to the specified percentage of
the distance between the Y-coordinates of P1 and P2. A negative
height parameter mirrors labels in the top-to-bottom direction.
Parameter Format
Functional
Range Default
width clamped real –32768 to
32767
0.75% of P2X–P1X
height clamped real –32768 to
32767
1.5% of P2Y–P1Y