Printing on bluetooth printers

Example on how to use, to bold the word “Apple”:

‘\x1b\x45\x01’+‘Apple’+’\x1b\x45\x00’

See below for the rest:

    TXT_BOLD_OFF: '\x1b\x45\x00', // Bold font OFF
    TXT_BOLD_ON: '\x1b\x45\x01', // Bold font ON

    TXT_FONT_A: '\x1b\x4d\x00', // Font type A //normal font
    TXT_FONT_B: '\x1b\x4d\x01', // Font type B //small font
    TXT_FONT_C: '\x1b\x4d\x02', // Font type C //normal font

    TXT_NORMAL: '\x1b\x21\x00', // Normal text
    TXT_2HEIGHT: '\x1b\x21\x10', // Double height text
    TXT_2WIDTH: '\x1b\x21\x20', // Double width text
    TXT_4SQUARE: '\x1b\x21\x30', // Double width & height text
1 Like