User manual

40
TRUETYPE FONTS SUPPLEMENT
(This option is available with all 26/46 models and some 24/44 models. Also needed is the appropriate
SB02 or SB03 resident font file. )
TrueType Download Command - <ttf#>
The TrueType font files can be downloaded manually or through a customer’s application using the appropriate
command. The <ttf#> command is issued to alert the printer that a TrueType file follows; the # sign is replaced
with the TrueType fonts file size as reported by the operating system. The download command is then
immediately followed by a binary copy of the font file that the printer will save in memory. Unless a file ID
number was previously assigned (please see FGL <ID#> command) the printer will automatically assign the
next available ID to the TrueType font. The file ID is very important since it will be used for all future references
to the font.
The Boca Systems customer program also supports downloading of TrueType font files to the printer. The
program is available for free on our web site at www.bocasystems.com, a link to the program can be found
under the Ghostwriter News page.
The TrueType font files are located in the C:\windows\fonts directory on Windows XP system, however, this is a
special system directory and attempts to download files from this location will fail. We therefore recommend
copying the TrueType file from this directory and placing it either in your program’s working directory or the
working directory for the customer program (C:\Program Files\Customer) before attempting to send the file to
the printer.
Example: <ID1><ttf117028>”binary file data”
The <ID1> command is optional as explained above. The <ttf117028> provides the TrueType font file size and
is immediately followed by the data from the font file.
TrueType Font Selection Commands - <TTF#> and <RTF#>
Once downloaded to the printer TrueType fonts can be selected by referencing their file ID number. This ID was
either assigned during the download process or for resident fonts pre-assigned at the factory. User downloaded
fonts are selected with the <TTF#,#> and factory residents font selections use the <RTF#,#> command. In both
cases the first command parameter specifies the font’s ID number and the second parameter specifies the point
size to use when scaling it for use.
Example: <TTF1,12><RC100,100>This a TrueType font.
The first parameter 1 is the file ID and the second parameter 12 is the font’s point size, if a point size is not
specified the last point size requested or the printer’s default value is used.
Beginning with resident printer font revision SB02 (the revision number appears on the LCD display as well as
the printer’s configuration ticket) the printer included 6 TrueType fonts from two different font families. These
font files where assigned file IDs 1 through 6. A list of the resident TrueType fonts along with their ID number is
given below:
ID Resident Font Description
--- ------------------------------------------------------------
1 Comic Sans
2 Comic Sans Bold
3 Verdana
4 Verdana Bold
5 Verdana Italic
6 Verdana Bold Italic
User downloaded fonts are selected with the <TTF#, #> and factory residents font selections use the <RTF#, #>
command. In both cases the first command parameter specifies the font’s ID number and the second parameter
specifies the point size to use when scaling it for use. Below are a few examples of common FGL commands
used to print with the resident and downloaded true type fonts. FGL Commands similar to these will need to be
embedded into your ticketing software for the fonts to be printable.