Commit 7b12f4dd authored by Andrey's avatar Andrey

Added new greek code tables. Readme updated.

parent b18c5d02
......@@ -11,8 +11,6 @@ It can be used in [Flutter](https://flutter.dev/) or [Dart](https://dart.dev/) p
To discover existing printers in your subnet, consider using [ping_discover_network](https://pub.dev/packages/ping_discover_network) package. Note that most of ESC/POS printers by default listen on port 9100.
USB and Bluetooth printers support will be added later.
## Features
* Connect to Wi-Fi printers
......@@ -33,6 +31,8 @@ import 'package:esc_pos_printer/esc_pos_printer.dart';
Printer.connect('192.168.0.123', port: 9100).then((printer) {
printer.println('Normal text');
printer.println('Special symbols: àÀ èÈ éÉ ûÛ üÜ çÇ ôÔ',
styles: PosStyles(codeTable: PosCodeTable.westEur));
printer.println('Bold text', styles: PosStyles(bold: true));
printer.println('Reverse text', styles: PosStyles(reverse: true));
printer.println('Underlined text',
......
......@@ -68,6 +68,18 @@ class PosCodeTable {
/// Greek
static const greek = PosCodeTable._internal(7);
/// PC737 - Greek
static const pc737 = PosCodeTable._internal(64);
/// PC851 - Greek
static const pc851 = PosCodeTable._internal(65);
/// PC869 - Greek
static const pc869 = PosCodeTable._internal(66);
/// PC928 - Greek
static const pc928 = PosCodeTable._internal(67);
/// PC866 - Cyrillic #2
static const pc866 = PosCodeTable._internal(17);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment