Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unifont prints cut texts #1330

Open
yayidg22 opened this issue May 4, 2024 · 0 comments
Open

Unifont prints cut texts #1330

yayidg22 opened this issue May 4, 2024 · 0 comments

Comments

@yayidg22
Copy link

yayidg22 commented May 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant