^CF · Default font
Defines the default font/size for texts.
Syntax and practical example
^CFf,h,wExample: ^CF0,30
^XA
^PW600
^LL400
^CF0,28,28
^FO40,40^FDLOT: A17^FS
^FO40,90^FDQTY: 24^FS
^FO40,150^A0N,50,50^FD24.90^FS
^XZEducational example; not a certified label or a physical print test. Sample text and codes stay the same in every language for comparison.
Expected result with ^CF
^CF0,28,28 sets the common size for lot and quantity. The price overrides it with ^A0N,50,50. Change ^CF to 32,32: the two fields without ^A0 should change while the price retains its explicit size.
What should I check if ^CF does not give the expected result?
If text ignores the default font, look for an ^A selection in that field. Use ^CF for shared styling and ^A0 for exceptions; repeated conflicting settings make layouts harder to maintain.
Related commands
About the author
Eduard Diaz
Eduard Diaz is an IT technician (development) at S-IE, an official Zebra partner with more than 20 years providing identification and labelling services. He builds and maintains EditorZPL to make working with ZPL and Zebra label printers easier.
s-ie.cat