ESC/ P Command Reference
Table Of Contents
- Control code list
- Print area
- Characters
- Print position
- Line feed amount
- Document creation flow
- Control command details
- Character/style selection commands
- Text printing commands
- ESC 4 Apply italic style
- ESC 5 Cancel italic style
- ESC E Apply bold style
- ESC F Cancel bold style
- ESC G Apply double-strike printing
- ESC H Cancel double-strike printing
- ESC W Specify double-width characters
- SI Specify compressed characters
- ESC SI Specify compressed characters
- DC2 Cancel compressed characters
- ESC - Apply/cancel underlining
- ESC ! Global formatting
- ESC X Specify character size
- ESC i f Apply/cancel a frame (global)
- CAN Clear text
- DEL Delete one character
- ESC CR Not available
- Line feed commands
- Horizontal movement commands
- Vertical movement commands
- Paper formatting
- Printer control commands
- Graphics commands
- Kanji commands
- Advanced commands
- ESC i B Bar code
- ESC i Q 2D bar code (QR Code)
- ESC i P Specify QR Code version
- ESC i V 2D bar code (PDF417)
- ESC i D 2D bar code (DataMatrix)
- ESC i M 2D bar code (MaxiCode)
- ESC i F Print transferred data
- ESC i a Switch command mode
- ESC i S Request printer status
- ESC i L Apply/cancel rotated printing
- ESC i C Specify cut setting
- ESC i U B Specify baud rate
- ESC i U b Specify bit length
- ESC i U P Specify parity setting
- ESC i U C Specify busy control
- Character code
- BROTHER PT-9800PCN/9700PC ESC/P specifications
11
Print position
The print position is the standard position for printing characters, bitmaps and bar codes.
With the print position, there is a horizontal print position, which is the reference point for
vertical position movement.
Each character is arranged so that their top edge aligns with the print position.
The baseline of each character is the bottom edge of the character, regardless of size, font,
etc.
All characters on the same line are printed so that the baseline position is the same for
each character.
If the text consists of characters with different heights, the characters are aligned on the
baseline of the tallest character in the line of text.
In addition, underlines are printed 4 dots below the baseline position.
Bitmaps, bar codes and transferred images
These types of image data are treated in the same way as characters and are printed so
that the bottom edge of the image aligns with the baseline.
Same line
・Horizontal movement to the right between characters or images is regarded as being on
the same line; however, movement to the left is regarded as being on different lines if text
wrapping occurs.
A
Print
p
osition
Baseline position
A
Print
p
osition
A
A
Baseline position










