Programming guide friendly ghost language


TRUETYPE FONTS SUPPLEMENT



Download 1.07 Mb.
Page12/27
Date29.01.2017
Size1.07 Mb.
#11977
1   ...   8   9   10   11   12   13   14   15   ...   27

TRUETYPE FONTS SUPPLEMENT


This option is available with all Lemur, 26/46 and some 24/44 models.
TrueType Download Command -

The TrueType font files can be downloaded manually or through a customer’s application using the appropriate command. The 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 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 configuration program also supports downloading of TrueType font files to the printer. The program is available for free on our web site at http://www.bocasystems.com/repairs.html. Links to Windows and MAC versions the program can be found here.
The TrueType font files are located in the C:\windows\fonts directory on Windows systems, however, this is a special system directory and attempts to download files from this location will typically 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 configuration program such as “C:\Program Files\Boca Systems\Configure Boca” before attempting to send the file to the printer.
Example: ”binary file data”
The command is optional as explained above. The provides the TrueType font file size and is immediately followed by the data from the font file.
TrueType Font Selection Commands -

Note: The command and the related fonts have been eliminated.

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 command. 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: 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.


Below are a few examples of common FGL commands used to print with the downloaded true type fonts. FGL Commands similar to these will need to be embedded into your ticketing software for the fonts to be printable. While considering the examples below let’s pretend the user has already downloaded three TTF files into the printer in the following order:


  1. Times New Roman

  2. Arial

  3. Century

 

FGL COMMANDS

DESCRIPTION

Boca Systems


At row 100, column 100 print “Boca Systems” on a ticket with “Times New Roman” using point size 25.

Boca Systems


At row 100, column 100 print “Boca Systems” on a ticket with “Century” using point size 15.

Text in a Box


At position 200,100 print “Text in a Box” with “Arial” using point size 12 and on the same ticket at position 75, 60 print a box 300 by 400 dots.

Boca Systems


At row 100, column 100 print “Boca Systems” rotated right on a ticket with “Arial” using point size 20.

Boca Systems


At row 100, column 100 print “Boca Systems” on a ticket with “Century” using point size 35.

 
TrueType Font Character Sets - and

The TrueType fonts, unlike bitmap fonts, are designed to support multiple character sets using a single font file. This support is provide through the use of codepages which are basically mapping tables used to select a related groups of characters from a much larger master set. The characters are selected and arranged in the extended character region of a single byte font to support the various international writing systems and alphabets. These character sets conform to international standards and allow the printer to be used with operating systems that have been deployed around the world. Currently the printer offers support for a number of Microsoft Windows and MS-DOS character sets. The printer’s TrueType character set can be easily changed either permanently or temporarily through the use of FGL commands.


The codepages supported by the printer are listed below. However, it must be noted that not all TrueType fonts support the entire list of codepages; it is the user’s responsibility to make sure the TrueType font file contains the characters necessary to support the selected codepage. This restriction applies to resident fonts as well as fonts downloaded to the printer by the end user.
The TrueType codepages can be selected using the following FGL commands - and . The upper case command temporarily selects the codepage and the lower case command is used to permanently change the printer’s power on default value.
ID Character Set Description

------ --------------------------------------------------------------

  • 1 1250 Windows Central European

  • 2 1251 Windows Cyrillic

  • 3 1252 Windows Latin I *

  • 4 1253 Windows Greek

  • 5 1254 Windows Turkish

  • 6 1255 Windows Hebrew

  • 7 1256 Windows Arabic

  • 8 1257 Windows Baltic

  • 9 437 OEM US (MS-DOS)

  • 10 858 OEM Multilingual Latin + Euro (MS-DOS)

* Indicates the printer’s default character set.


NOTE: Fonts are software protected by various worldwide intellectual property laws.  Permanent download of any TrueType font may be subject to licensing restrictions imposed by the owner and/or licensor of the font.  Check with your font supplier to ensure that your intended use of fonts is properly licensed.




Download 1.07 Mb.

Share with your friends:
1   ...   8   9   10   11   12   13   14   15   ...   27




The database is protected by copyright ©ininet.org 2024
send message

    Main page