escpos-php icon indicating copy to clipboard operation
escpos-php copied to clipboard

Unifont prints cut texts

Open yayidg22 opened this issue 1 year ago • 0 comments

Type of my printer: 2Connect 2C-POS80-02 When I use unifont all the printed texts are cut off I attach an example image I am using unifont-15.1.05


/*Example code */
 $printerName = 'sharedPrinter';
 /* Fill in your own connector here */
 $connector = new WindowsPrintConnector($printerName);

 /* Start the printer */
 $printer = new Printer($connector);
  
 // Use Unifont to render text
 $unifontBuffer = new UnifontPrintBuffer("./unifont.hex");
 $printer->setPrintBuffer($unifontBuffer);
 $printer->text('Hola esto funciona\n');
 $printer->text('Ողջույն, սա աշխատում է: \n');
 $printer->text('こんにちは、これは機能します \n');
 $printer->text('안녕하세요 이게 작동해요 \n');
 $printer->text('你好,这有效 \n');

ERROR IMAGE

yayidg22 avatar May 04 '24 19:05 yayidg22