From b2733bf3fd5213a1fc18de064cf5f5e5606acdfe Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Fri, 12 Apr 2019 23:56:11 +0200 Subject: label-tool: show the font name --- label-tool/main.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'label-tool/main.go') diff --git a/label-tool/main.go b/label-tool/main.go index 79cac4c..35c0667 100644 --- a/label-tool/main.go +++ b/label-tool/main.go @@ -151,6 +151,9 @@ var tmpl = template.Must(template.New("form").Parse(`

Error: {{ .PrinterErr }} {{ end }} +

+

Font: {{ .Font.Name }} +

@@ -215,6 +218,7 @@ func handle(w http.ResponseWriter, r *http.Request) { PrinterErr error InitErr error MediaInfo *ql.MediaInfo + Font *bdf.Font Text string Scale int }{ @@ -222,6 +226,7 @@ func handle(w http.ResponseWriter, r *http.Request) { PrinterErr: printerErr, InitErr: initErr, MediaInfo: mediaInfo, + Font: font, Text: r.FormValue("text"), } -- cgit v1.2.3-70-g09d2