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)。
要更改字体大小,可以使用“ESC!” 命令

  • 字体 A:“ESC !0”(1Bh 21h 00h)
  • 字体 B:“ESC!1”(1Bh 21h 01h)

如果它不起作用,您可以先发送“ESC @”来清理命令缓冲区。

于 2016-04-07T21:25:25.840 回答
1

试试这个

normalSize = {0x1B, 0x21, 0x03}

粗体 = {0x1B、0x21、0x08}

粗体中 = {0x1B, 0x21, 0x20}

粗体大 = {0x1B, 0x21, 0x10}

于 2018-02-28T04:27:23.577 回答