Select Font Id Number; Select Font Style Number; Save Font Id Number As Default Font At Power Up; Get Double-Byte Font Crc (Font Id) - CognitiveTPG A799II Programming Manual

Two-color thermal receipt printer
Hide thumbs Also See for A799II:
Table of Contents

Advertisement

68
Chapter 4: Programming Commands

Select font ID number

ASCII
GS 0xF0 0x01 n
Hexadecimal
1D F0 01 n
Decimal
29 240 1 n
Value of n: 128 - 255
Select font ID number for downloaded font.
This command is sent before downloading the map file for a specific font. Each font ID has one map file to download.
This command is also sent to select a downloaded font at run time.
Font ID
Font
C3 (hex)
Traditional Chinese
D3 (hex)
Simplified Chinese
CB (hex)
Kanji
CE (hex)
Korean

Select font style number

ASCII
GS 0xF0 0x02 n
Hexadecimal
1D F0 02 n
Decimal
29 240 2 n
Value of n:
0 - 255
Select font style number for downloaded font. After selecting font style number, set the horizontal and vertical character
spacing for the characters.
This command is sent before downloading the map file for a specific font. Each font ID can have multiple styles. For
example, two different styles could be 16 x 16 Gothic and 24 x 24 Gothic, or three different styles could be 16 x 16
Gothic, 16 x 16 Ariel, and 16 x 16 Courier. Each style number within a font has one character definition file.
This command is also sent to select a downloaded font style at run time.

Save font ID number as default font at power up

ASCII
GS 0xF0 0x03
Hexadecimal
1D F0 03
Decimal
29 240 3
Save current font ID number as default font at power up. All characters will be printed from the downloaded font.

Get double-byte font CRC (font ID)

ASCII
GS 0xF0 0x20 nn
Hexadecimal
1D F0 20 nn
Decimal
29 240 32 nn
This command queries the double-byte font CRC where nn is the fontset ID. The printer transmits ACK (0x06) followed
by the two-byte CRC; otherwise, returns a NAK (0x15) followed by two bytes of zero (0x00).

Get double-byte font CRC (font ID and font style)

ASCII
GS 0xF0 0x20 nn mm
Hexadecimal
1D F0 21 nn mm
Decimal
29 240 33 nn mm
This command quires the double-byte font CRC where nn is the font ID and mm is the font style. The printer transmits
ACK (0x06) followed by the two-byte CRC; otherwise, returns a NAK (0x15) followed by two bytes of zero (0x00).
A799-2PG0001B 4/2016

Advertisement

Table of Contents
loading

Table of Contents