BarStorm Installation Guide
- - 14 - -
Copyright © Fontware Limited. All rights reserved.
where # is the macro id. This is appended to the overlay data to signify the end of the macro data:
Esc&f1X
In either the font or the overlay case, omitting the id field means that the font/overlay is expected to contain
the command to set the font/macro id.
The font_id and macro_id can be in the range 1-32767 inclusive.
Specifying the id <0> is equivalent to omitting the id directive and will NOT have the effect of sending the font
as font id 0 (which PCL allows).
If you specify a font twice:
usb1: font "font1.bin" <3>, font "font1.bin" <3>
It will simply be loaded on to the printer twice before the print job.
You can place as many entries on each line as you want, up to a maximum line length of 1000 characters.
usb1: font "font1.bin" <3>, once, font "font1.bin" <3>, overlay "ovlay.pcl", overlay "ovlay1.pcl".
Loading macros before each job or just when printer is booted
The default behavior is that the font/overlay will be sent before each printer job. It is possible to tell the
BarSTORM server to send the fonts/overlays only when necessary, by adding a keyword to a font/overlay
line:
usb1: once, font "font1.bin" <4>
This means that the font is loaded to the printer on usb1 only once, when the first print job is processed. The
font will be re-loaded if the printer is disconnected or power-cycled.
If the line relates to a bridge queue:
bridge1: once, font "font1.bin" <4>
then the BarSTORM cannot know when the destination printer is power cycled, so the once keyword should
not be used.
If several directives are listed for a given printer, the once keyword need only appear on one line. If it
appears on *any* line, then the "send when necessary" behavior is enabled.
This:
usb1: font "font1.bin" <3>, once
usb1: font "font.bin"
means that both font1.bin AND font.bin are sent to the usb1 printer only when necessary (when printer is re-
connected/power cycled). It DOESN'T mean that font.bin is sent with each job and font1.bin is sent only
once.
The "all" keyword
There is a special keyword which matches all queues:
all: font "font.bin", overlay "ovl1.pcl" <10>
will cause font.bin to be sent to all connected usb printers and bridge queues. The once keyword can be
added here and will then apply to all queues, including bridge queues. (This may be considered bad
practice).