|
@@ -34,6 +34,37 @@ print the test page
|
|
|
`echo -en "\x12\x54" > /tmp/DEVTERM_PRINTER_IN`
|
|
|
|
|
|
|
|
|
+### CJK
|
|
|
+edit `/usr/local/etc/devterm-printer` ,pointer to an existed ttf file,eg:
|
|
|
+`TTF=/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc`
|
|
|
+
|
|
|
+then restart devterm-printer.service with
|
|
|
+```
|
|
|
+sudo systemctl restart devterm-printer
|
|
|
+```
|
|
|
+devterm-printer daemon will auto detect if the ttf file existed,if exists, devterm-printer will use the ttf as default font
|
|
|
+
|
|
|
+use above set printer font index,n:0-4 command to set font size,
|
|
|
+1. 0 = 12x12
|
|
|
+1. 1 = 14x14
|
|
|
+1. 2 = 16x16
|
|
|
+1. 3 = 18x18
|
|
|
+1. 4 = 20x20
|
|
|
+
|
|
|
+then
|
|
|
+
|
|
|
+```
|
|
|
+echo "鉴于对人类家庭所有成员的固有尊严及其平等的和不移的权利的承认,乃是世界自由、正义与和平的基础" > /tmp/DEVTERM_PRINTER_IN
|
|
|
+```
|
|
|
+to print cjk characters
|
|
|
+
|
|
|
+#### ESC V n rotation command,cjk mode only
|
|
|
+
|
|
|
+`echo -en "\x1b\x56\x0" >/tmp/DEVTERM_PRINTER_IN` disable rotation
|
|
|
+`echo -en "\x1b\x56\x1" >/tmp/DEVTERM_PRINTER_IN` 90 degree
|
|
|
+`echo -en "\x1b\x56\x2" >/tmp/DEVTERM_PRINTER_IN` 180 degree
|
|
|
+`echo -en "\x1b\x56\x3" >/tmp/DEVTERM_PRINTER_IN` 270 degree
|
|
|
+
|
|
|
### How to run it from source
|
|
|
|
|
|
* make
|