Skip to content
Articles
Article

escpos_arabic: ESC/POS receipts in pure Dart, with Arabic that prints correctly

by Abdeldjalil Chougui dev.to

5 min read

Printing a receipt on a thermal printer means sending it ESC/POS commands: a stream of bytes that says "bold on", "center this", "print this barcode", "cut the paper". For Latin text that is manageable. For Arabic it goes wrong quickly. The printer does not shape letters, so each one comes out in its isolated form, and it prints bytes in the order it receives them, so a right-to-left line comes o…

Forum

Questions about this, or something to add?

Discuss on the forum

Report this · Wrote this? Claim it

FlutterX is supported by