diff --git a/cmd/label-tool/main.go b/cmd/label-tool/main.go index 39a840c..15fb68d 100644 --- a/cmd/label-tool/main.go +++ b/cmd/label-tool/main.go @@ -4,6 +4,7 @@ import ( "errors" "html/template" "image" + "image/draw" "image/png" "log" "net/http" @@ -16,15 +17,26 @@ import ( "janouch.name/sklad/ql" ) -var font *bdf.Font +var tmplFont = template.Must(template.New("font").Parse(` + +
++ +{{ end }} + +`)) -var tmpl = template.Must(template.New("form").Parse(` +var tmplForm = template.Must(template.New("form").Parse(`
- + |