From 34d7d343ba66445b923fc06ae55232f5ec7f3d6d Mon Sep 17 00:00:00 2001 From: cuu Date: Fri, 11 Mar 2022 20:44:07 +0800 Subject: [PATCH] readme --- Code/thermal_printer/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Code/thermal_printer/README.md b/Code/thermal_printer/README.md index baa9213..6a8ec9f 100644 --- a/Code/thermal_printer/README.md +++ b/Code/thermal_printer/README.md @@ -35,14 +35,15 @@ print the test page ### UNICODE -edit `/usr/local/etc/devterm-printer` ,pointer to an existed ttf file,eg: +Edit `/usr/local/etc/devterm-printer` ,point 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 +devterm-printer daemon will auto detect if the ttf file existed,if exists, devterm-printer will use the ttf as default font +if ttf file not existed, devterm-printer will fallback to ascii mode use above set printer font index,n:0-4 command to set font size, 1. 0 = 12x12