Plain English

Draws a text field at the specified position. You choose the font, rotation, and enlargement multipliers. TSPL combines position, font, and text data in a single command — unlike SBPL which uses separate commands for each.

When to use

Whenever you need to print text on the label. This is the primary text command in TSPL.

Syntax

TEXT x,y,"font",rotation,x-mul,y-mul,"data"

Parameters

ParameterDescription
x
Horizontal position in dots from the left edge
y
Vertical position in dots from the top edge
font
Font name: "1" (8x12), "2" (12x20), "3" (16x24), "4" (24x32), "5" (32x48), or TrueType name
rotation
0 (0 deg), 90, 180, or 270
x-mul
Horizontal enlargement (1-10)
y-mul
Vertical enlargement (1-10)
data
The text string to print (in double quotes)

Example

TEXT 50,30,"4",0,1,1,"Hello World"

Print "Hello World" at position 50,30 using font 4

Try it in the playground View all TSPL commands