Plain English

Sets the print darkness (density). Higher values produce darker output. The range is 0-15. Start at 8 and adjust up or down based on scan results and visual quality.

When to use

When you need to adjust print darkness — barcode scanning issues often stem from incorrect density settings.

Syntax

DENSITY n

Parameters

ParameterDescription
nDensity level 0 (lightest) to 15 (darkest)

Example

DENSITY 8

Set print density to medium (8)

Try it in the playground View all TSPL commands