ZPL commands

~DB · Download Bitmap Font

Downloads a bitmap font to the printer. The header with the font metrics is followed by the character data.

Downloads a bitmap font to the printer. The header with the font metrics is followed by the character data.

Parameters

  • ~DBd:o.x,a,h,w,base,space,#char,©,data - d:o.x: Drive, font name and extension .FNT (e.g. R:DEMO.FNT)
  • ~DBd:o.x,a,h,w,base,space,#char,©,data - a: Font orientation (N only)
  • ~DBd:o.x,a,h,w,base,space,#char,©,data - h: Maximum character height in dots
  • ~DBd:o.x,a,h,w,base,space,#char,©,data - w: Maximum character width in dots
  • ~DBd:o.x,a,h,w,base,space,#char,©,data - base: Distance from the top of the cell to the baseline in dots
  • ~DBd:o.x,a,h,w,base,space,#char,©,data - space: Width of the space character in dots
  • ~DBd:o.x,a,h,w,base,space,#char,©,data - #char: Number of characters (1–256)
  • ~DBd:o.x,a,h,w,base,space,#char,©,data - ©: Copyright notice
  • ~DBd:o.x,a,h,w,base,space,#char,©,data - data: Character data - for each character a header with character code, bitmap size, offset and advance, followed by the hex data

Example

~DBR:DEMO.FNT,N,16,16,13,4,1,zplCloud,
#0041.16.16.0.0.16.
...

Tip

TrueType fonts are usually better - ~DB suits fixed bitmap character sets.