zpl.tools
Font & Text Commands

^A - Scalable/Bitmapped Font

Selects font and sets character size

^A - Scalable/Bitmapped Font

Overview

The ^A command selects a font and specifies the character height and width for text printing.

Syntax

^Afo,h,w

Parameters

  • f = Font identifier (A-Z, 0-9)
    • A = Helvetica
    • B = Courier
    • D = Times Roman
    • E = Gothic
    • F = Reserved
    • G = Symbol
    • H = OCR-A
    • T = Times New Roman
    • U = Courier New
    • V = Reserved
    • Z = Special font (defined by printer)
  • o = Orientation
    • N = Normal (0°)
    • R = Rotated 90° clockwise
    • I = Inverted 180°
    • B = Bottom up (270°)
  • h = Character height in dots
  • w = Character width in dots (optional, defaults to height)

Description

  • Selects which font to use for text
  • Sets character dimensions for scalable fonts
  • Multiple fonts available depending on printer
  • Mandatory for text fields

Usage Notes

  • Must precede ^FD for text to use this font
  • Font size affects readability and label space
  • Typical heights: 20-100+ dots
  • Width typically matches height unless proportional

Example

^XA ^FO50,50 ^ADN,50,50 ^FDHello World^FS ^FO50,120 ^ABN,40,30 ^FDSmaller Text^FS ^XZ

Font Selection Table

LetterFont NameType
AHelveticaSans-serif
BCourierMonospace
DTimes RomanSerif
EGothicSerif
GSymbolSymbols
HOCR-AMachine-readable
TTimes New RomanSerif
UCourier NewMonospace

Orientation Reference

LetterRotationDegrees
NNormal
RRight/Rotated90°
IInverted180°
BBottom-up270°
  • ^A@ - Use Font Name to Call Font
  • ^CF - Change Alphanumeric Default Font
  • ^CW - Font Identifier

See Also