Sign In
Products
ZPL ViewerBarcode GeneratorImage → ZPLZPL cheat sheetLabel DesignerTemplate Gallery
Developers
API QuickstartAPI ReferenceMCP ServerBulk GenerationWebhooksSDKs & ExamplesLimitsDirectPrint agent NewGitHub ActionVS Code extensionOn-Premise
Solutions
Logistics & ShippingE-CommerceERP & WMSManufacturingRetailHealthcare & LaboratoryAll solutions
Tools
ZPL Diagnostics HubZPL DebuggerSize & DPI AnalyzerDPI ConverterBarcode fit calculatorShipping Label AnalyzerFont InspectorOrientation DebuggerCalibration AssistantPrinter Compatibility CheckerBarcode Readability CheckerPrinter Language DetectorThermal Printer Test PackZPL ToolsEPL ToolsTSPL ToolsCPCL ToolsPrinter Language ConverterAll ToolsGuidesPricing
Language
EnglishTürkçeDeutsch
Home›All CPCL commands›SETMAG

SETMAG — Text magnification

Sets horizontal/vertical magnification for the text that follows.

Engine status: Parsed, not rendered

The engine recognises the command and skips it: it is a DEVICE setting and does not change the image on the media. Your label still parses cleanly.

Syntax

SETMAG w h

Example

! 0 200 200 210 1
PAGE-WIDTH 576
SETMAG 2 2
PRINT

Open this example in the preview →

Open the validator →

Parameters

ParameterMeaning
wHorizontal magnification for the text that follows; not applied by the preview
hVertical magnification for the text that follows; not applied by the preview

All CPCL commands

! · PAGE-WIDTH · TEXT · TEXT90 · TEXT180 · TEXT270 · BARCODE · LINE · BOX · EXPANDED-GRAPHICS · PRINT · FORM · CONTRAST · TONE · SPEED · JOURNAL · CENTER

All CPCL commands