2

I developed a small library in Java to send commands to a Epson TM-T70II printer with ESC/POS protocol. I'm able to print all what I need but I can't find a way to change the font size of the text to a smaller value than the default font size. Just to puntualize, "GS!" is not a ESC/POS useful command because it can only increase the font size, see here to more info.

I was looking at "ESC&" but I'm not sure this can be useful to reduce the font size. Can you give me some suggestion and a small example of the command to use?

4

2 に答える 2

3

TM-T70II には、FontA(12x24) と FontB(9x17) の 2 種類のフォントがあります。
フォントサイズを変更するには、「ESC !」を使用できます。指図

  • フォント A: "ESC ! 0" (1Bh 21h 00h)
  • フォント B: "ESC ! 1" (1Bh 21h 01h)

うまくいかない場合は、最初に "ESC @" を送信してコマンド バッファを消去します。

于 2016-04-07T21:25:25.840 に答える