Good to you I have a thermal printer with which I want to make impressions, I found this program link and works well but uses a class that formats the text that is going to print and I do not understand it very well I show you the code
PRINTERCOMMANDS CLASS
public static final byte[] ESC_ALIGN_LEFT = new byte[] { 0x1b, 'a', 0x00 };
public static final byte[] ESC_ALIGN_RIGHT = new byte[] { 0x1b, 'a', 0x02 };
public static final byte[] ESC_ALIGN_CENTER = new byte[] { 0x1b, 'a', 0x01 };
public static final byte[] ESC_CANCEL_BOLD = new byte[] { 0x1B, 0x45, 0 };
public static final byte[] ESC_TITULO_ENTRELINEADO = new byte[] {0x1B,0x20,0x03};
public static final byte[] ESC_DATOS_EMPRESA_ENTRELINEADO = new byte[] {0x1B,0x20,0x00};
public static final byte[] ESC_NORMAL = new byte[] {0x1B,0x21,0x03}; // TEXTO NORMAL
public static final byte[] ESC_NORMAL_NEGRITA = new byte[] {0x1B,0x21,0x08}; // TEXTO NORMAL NEGRITA
public static final byte[] ESC_ALTO = new byte[] {0x1B,0x21,0x10}; // TEXTO ALTO
public static final byte[] ESC_ALTO_NEGRITA = new byte[] {0x1B,0x21,0x19}; // TEXTO ALTO NEGRITA
public static final byte[] ESC_LARGO = new byte[] {0x1B,0x21,0x20}; // TEXTO LARGO
public static final byte[] ESC_LARGO_NEGRITA = new byte[] {0x1B,0x21,0x29}; // TEXTO LARGGO NEGRITA
public static final byte[] ESC_LARGO_Y_ALTO = new byte[] {0x1B,0x21,0x30}; // TEXTO LARGO Y ALTO
public static final byte[] ESC_LARGO_Y_ALTO_NEGRITA = new byte[] {0x1B,0x21,0x39}; // TEXTO LARGO Y ALTO NEGRITA
I do not understand this code well, but by trial and error I managed to find some different types of letters but this is a very bad way to work, I would like to know if anyone knows where I can study the bytes for the thermal printer (sunny) and if someone knows how to make the print letter smaller (look a lot for trial and error and just end up unconfiguring the printer) PS: Of the found the smallest text that I found is the normal one.
since thank you very much for your help