react-native-bluetooth-escpos-printer icon indicating copy to clipboard operation
react-native-bluetooth-escpos-printer copied to clipboard

BluetoothTscPrinter it's possible to use encoding and codepage ?

Open shinnachot opened this issue 2 years ago • 1 comments

I would like to use BluetoothTscPrinter function to print my THAI language i research on this column and i cannot found it. I only found BluetoothEscposPrinter has function encoding to print my THAI language. Here is my code

i try to add encoding: 'Cp874', codepage: '255' at printLable option but it's not working

thank you for your help

BluetoothTscPrinter.printLabel(
    {
        width: 40,
        height: 30,
        gap: 20,
        direction: BluetoothTscPrinter.DIRECTION.FORWARD,
        reference: [0, 0],
        tear: BluetoothTscPrinter.TEAR.ON,
        sound: 1,
        encoding: 'Cp874',
        codepage: '255',
        text: [{
            text: 'ภาษาไทย',
            x: 20,
            y: 0,
            fonttype: 'Cp874',
            rotation: BluetoothTscPrinter.ROTATION.ROTATION_0,
            xscal: BluetoothTscPrinter.FONTMUL.MUL_1,
            yscal: BluetoothTscPrinter.FONTMUL.MUL_1
        }]
        
    }

shinnachot avatar Apr 12 '22 05:04 shinnachot

anyone here ?

shinnachot avatar Apr 21 '22 08:04 shinnachot