[ESC+RH] Scalable Font

CL4NX CL6NX CL4NX-J CL6NX-J PW208/PW208m PW208NX/PW208mNX FX3-LX CT4-LX/HC4-LX PW4NX LR4NX-FA S84NX/S86NX CL4-SXR CL6-SXR

Hexadecimal code

ESC <1B>16
RH <52>16<48>16

Parameter

a,b...b,c,ddd,eee,f...f

Initial value

Nil

Valid range and term of command

When the power switch is OFF The set parameter is not maintained.
Valid range within items The set parameter becomes invalid.
Valid range between items The set parameter becomes invalid.

Function

Built-in scalable font and the TTF font downloaded using file download [DC2]DE of a common command are printed.

Format

<RH>a,b...b,c,ddd,eee,f...f

  • Parameter

    a [Character code]

    = Character code of print data to be specified to a parameter f.

    See the table below.

    b [Font set] = Valid range: Font type for printing See the table below

    c [Modification]

    = 0: Standard

    = 1: Bold

    = 2: Italic

    = 3: Bold + Italic

    d [Width] = Valid range: see below table [valid range of horizontal size, vertical size]

    e [Height] = Valid range: see below table [valid range of horizontal size, vertical size]

    f [Print Data] = Data

Character code list

Parameter a Character code
0 UNICODE (UTF-8)
1 UNICODE (UTF-16 BE)
* Recommended
2*1 S-JIS
3*1 BIG5
4*1 GB18030
5*1 KSX 1001 (EUC-KR)
-

Character set specified by <CE>

* If UTF-8 or X201 has been selected by <CE>, it is the value of the following.

<CE> <RH> Parameter a
UTF-8 0: UTF-8
X201 (*1) 2: S-JIS (*1)
  1. FX3-LX, CT4-LX/HC4-LX, PW4NX, CL4-SXR/CL6-SXR only

Built-in font set list

Parameter b Font name
SATOCGSleek.ttf SATO CG Sleek
SATOCGStream.ttf SATO CG Stream
SATOOCRA.ttf SATO OCR-A
SATO0.ttf SATO 0
SATOALPHABC.ttf SATO Alpha Bold Condensed
SATOBETABI.ttf SATO Beta Bold Italic
SATOFOLIOB.ttf SATO Folio Bold
SATOFUTURAMC.ttf SATO Futura Medium Condensed
SATOGAMMA.ttf SATO Gamma
SATOOCRB.ttf SATO OCR-B
SATOSANS.ttf SATO Sans
SATOSERIF.ttf SATO Serif
SATOSYM.ttf SATO Symbol Set
SATOVICA.ttf SATO Vica
SATOWING.ttf SATO WingBats
SUD-MIN-JPN.ttf *1 SATO UD Mincho Japanese
SUD-GOT-JPN.ttf *1 SATO UD Gothic Japanese
SUD-SON-ZHS.ttf *1 SATO UD Song Simplified Chinese
SUD-HEI-ZHS.ttf *1 SATO UD Hei Simplified Chinese
SUD-MIN-ZHT.ttf *1 SATO UD Ming Traditional Chinese
SUD-HEI-ZHT.ttf *1 SATO UD Hei Traditional Chinese
SUD-BAT-KOR.ttf *1 SATO UD Batang Korean
SUD-DOT-KOR.ttf *1 SATO UD Dotum Korean
SUD-SER.ttf *1 SATO UD Serif
SUD-SAN.ttf *1 SATO UD Sans
SUD-NAS-ARA.ttf *1 SATO UD Naskh Arabic
SUD-KUF-ARA.ttf *1 SATO UD Kufic Arabic
SUD-SER-THA.ttf *1 SATO UD Serif Thai
SUD-SAN-THA.ttf *1 SATO UD Sans Thai
SUD-SER-HEB.ttf *1 SATO UD Serif Hebrew
SUD-SAN-HEB.ttf *1 SATO UD Sans Hebrew
SUD-SER-HIN.ttf *1 SATO UD Serif Hindi
SUD-SAN-HIN.ttf *1 SATO UD Sans Hindi
  1. FX3-LX, CT4-LX/HC4-LX, PW4NX, CL4-SXR/CL6-SXR only

Valid range of horizontal size and vertical size

Model Firmware version Horizontal size:
Selectable dot
Horizontal size:
Selectable point
Vertical size:
Selectable dot
Vertical size:
Selectable point
S84NX/S86NX Up to 8.1.2 020 - 999 P09 - P99 020 - 999 P09 - P99
8.1.3 and later 004 - 999 P02 - P99 004 - 999 P02 - P99
CL4NX/CL4NX-J/
CL6NX/CL6NX-J
Up to 1.14.0 020 - 999 P09 - P99 020 - 999 P09 - P99
1.14.1 and later 004 - 999 P02 - P99 004 - 999 P02 - P99
CT4-LX/HC4-LX Up to 6.6.7 020 - 999 P09 - P99 020 - 999 P09 - P99
6.6.8 and later 004 - 999 P02 - P99 004 - 999 P02 - P99
FX3-LX (International) Up to 5.5.4 020 - 999 P09 - P99 020 - 999 P09 - P99
5.5.5 and later 004 - 999 P02 - P99 004 - 999 P02 - P99
LR4NX-FA Up to 4.3.2 020 - 999 P09 - P99 020 - 999 P09 - P99
4.4.0 and later 004 - 999 P02 - P99 004 - 999 P02 - P99
PW4NX Up to 7.2.1 020 - 999 P09 - P99 020 - 999 P09 - P99
7.3.0 and later 004 - 999 P02 - P99 004 - 999 P02 - P99
CL4-SXR/CL6-SXR 10.0.0 and later 004 - 999 P02 - P99 004 - 999 P02 - P99
Other - 020 - 999 P09 - P99 020 - 999 P09 - P99

* One point is 0.35 mm.

* The valid range of height and width is 832 dots for 203 dpi.

Coding example 1: Printing of the built-in (scalable) font

Character code = UTF-16 BE, Font set = SATO CG Stream, Modification = Standard,
Width = 20 dots, Height = 20 dots, Print data = SATO


<A>
<V>100<H>100<P>2
<RH>1,SATOCGStream.ttf,0,20,20,<FF33>16<FF21>16<FF34>16<FF2F>16
<Q>2
<Z>
                    

Coding example 2: Printing of the downloaded True Type font

Character code= UTF-16 BE, Font set (The downloaded file name) = sample.ttf,
Modification = Standard, Width = 40 dots, Height = 40 dots, Print data = SATO


<A>
<V>100<H>100<P>2
<RH>1,sample.ttf,0,40,40,<FF33>16<FF21>16<FF34>16<FF2F>16
<Q>2
<Z>
                    

Coding example 3: Printing of the downloaded True Type font

Character code= UTF-16 BE, Font set (The downloaded file name) = Sample.TTF,
Modification = Standard, Width = 40 dots, Height = 40 dots, Print data = SATO


<A>
<V>100<H>100<P>2
<RH>1,Sample.TTF,0,40,40,<FF33>16<FF21>16<FF34>16<FF2F>16
<Q>2
<Z>
                    

Supplementary Explanation

  1. When a character code other than UTF-16 is specified, the character code will be converted into UTF-16. If there are character codes that cannot be converted, all character strings specified as a parameter error will be printed.
  2. If the font corresponding to specified character code doesn't exist, an invalid image defined in the font set will be printed.
  3. Supports only the TTF that supports Unicode (UTF-16 BE). If TTF doesn't support Unicode (UTF-16 BE), the specified character code is printed as GID (Glyph Index).
  4. Recommended fonts If you specify a "-".
    <CE>:
    Parameter a
    Official name <RH>:
    Parameter b
    Font name
    858 DOS 858 SATOCGSleek.ttf
    SATOCGStream.ttf
    SATO CG Sleek
    SATO CG Stream
    88591 ISO 8859/1
    88592 ISO 8859/2
    88599 ISO 8859/9
    850 DOS 850
    852 DOS 852
    855 DOS 855
    857 DOS 857
    737 DOS 737
    866 DOS 866
    1250 Win 1250
    1251 Win 1251
    1252 Win 1252
    1253 Win 1253
    1254 Win 1254
    1257 Win 1257
    869 IBM 869
    UTF-8 UTF-8
    201 X0201 - -
  5. Size that can be specified in the "character set" is up to 32 byte. Also, You can specify character will be only the following characters.
    • Alphabet
    • Number
    • Hyphen [-]
    • Underscore [_]
    • Period [.]
  6. Character may not be printed correctly if small character size is specified to downloaded TFF font. Please fully check on print result.
  7. Print size may be smaller than specified character size with parameter in landscape and portrait directions due to multi languages.
  8. If input code is set to UTF-8, the size of character code is available up to 4 bytes. UTF-8 does not support 5, 6 byte.
  9. Formatter functionality and Ligature functionality are used for complex languages (Arabic, Hindi, Thai) and Hebrew so that proportional is enabled for print regardless of how proportional was set.
  10. It is not possible to specify line feed code to in between character codes which forms single word and single character for complex languages (Arabic,Hindi, Thai) and Hebrew. Rendering result is not guaranteed if line feed code is specified.
  11. Please note that it is determined as ESC code if the first byte is 0x1b when UFT-16BE is specified.
  12. If the first 2 bytes are specified to range of surrogate pair (0xD800-0xDBFF ) when UFT-16BE is specified, it will be replaced with half size space on the condition that the last 2 bytes are not within the range of surrogate pair (0xDC00-0xDFFF).
  13. Please note that serialized print may not work properly for languages like Arabic, Hindi, Thai, and Hebrew because any input character code for those languages are rendered as character string and this will cause incorrect print position.
  14. Formatter functionality and Ligature functionality are used for complex languages (Arabic, Hindi, Thai) and Hebrew so that any input codes are rendered as character string. Input character codes for other languages than above-mentioned languages are rendered per character so that character gap is different between complex language and other languages.
  15. Please note that you may not get character as you expected after it is printed if the combination of input character code and character set is different from what is written below.
  16. 9 and bigger point should be selected for horizontal and vertical size. If 8 or smaller point size needs to be selected, check the print result first before actual use.

Valid Command

Print position

<V>

<H>

Modification

<P>

<%>

<F>

<PS>

<PR>

Scalable font sample

Print sample in following condition: Head density: 8 dots/mm, 30 x 30 points