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›ZPL Command Matrix›^CF

^CF — Change Default Font

Sets the default font, height and width for the ^FD fields that follow.

Syntax^CFf,h,w
CategoryFormat control

In the preview

This command is supported by the preview engine.

Example

^CF0,50,40

Runnable example

^XA^PW609^LL406^CF0,36^FO40,40^FDLINE ONE^FS^FO40,90^FDLINE TWO^FS^XZ

Open this label in the editor

Parameters

ParameterDescriptionType
ffont identifier (0-9, A-Z)strDefault: 0
hcharacter height in dotsintDefault: 30 · Range: 0–32000
wcharacter width in dots; 0 = proportional to heightintDefault: 0 · Range: 0–32000

Source

Zebra ZPL II Programming Guide (P1134473-11EN), page 154.

^XA · ^XZ · ^FS · ^FX · ^CI · ^PW · ^LL · ^LH · ^LT · ^PO · ^LR · ^LS · ^PM · ^CC · ^CT

Try this command in the preview