Trademark Symbol

 

Example showing how to print the trademark symbol and have it concatenate to the previous ^FD using the ^FT and GS commands.

 

^XA

^FT20,60^A0N,50,50^FH_^FDBestco^FS

^FT^GSN,24,24^FDC^FS

^XZ

 

 

In this example a format template is downloaded. An Arial.ttf font was converted by ztools and downloaded to the printer.

^FN is used to print a variable which in this case is the trademark symbol.

The double byte hex value for the trademark symbol is 21 22.

Just prior to the ^FN command in the downloaded format a ^CI17 is issued to the printer to set it to interpret double byte field data.

As a result the printer prints Acme™ .  The end of the print file contains a ^CI0 command to bring the printer back the its default encoding.

 

^XA

^DFR:STOREFMT1.ZPL^FS

^CWX,E:ARIAL.FNT^FS

^CI0

^FO100,50^AXN,70,60^FDCompany:^FS

^FT100,200^AXN,80,70^FDAcme^FS

^CI17

^FT^AXN,80,70^FN1^FS

^XZ

 

^XA

^XFR:STOREFMT1.ZPL^FS

^FN1^FH^FD_21_22^FS

^CI0

^XZ

 

In the following examples a new ^CI27 command is used to set the printer to codepage 1252. (60.13.0.11A) (bitmapped fonts only) (U-L-D fonts)

Codepage 1252 actually contains the ™ symbol (hex 99/ dec153)

 

In this example the first field is printed using codepage 850 (^CI13), and the second field is printed using codepage 1252 (CI27). A hex dump would show the ™ value as hex 99.

 

^XA

^CI13

^FO60,60^AFN,26,13^FH_^FDTEST_A9^FS

^CI27

^FO60,120^AFN,26,13^FDBestco™^FS

^XZ

 

In this example the second field prints the trademark symbol using the ^FH_ command and the hex value _99 entered in the field data.

 

^XA

^CI13

^FO60,60^AFN,26,13^FH_^FDTEST_A9^FS

^CI27

^FO60,120^AFN,26,13^FH_^FDBestco_99^FS

^XZ