label-tool: show the font name
This commit is contained in:
parent
b782686063
commit
b2733bf3fd
|
@ -151,6 +151,9 @@ var tmpl = template.Must(template.New("form").Parse(`
|
||||||
<p>Error: {{ .PrinterErr }}
|
<p>Error: {{ .PrinterErr }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
<fieldset>
|
||||||
|
<p>Font: {{ .Font.Name }}
|
||||||
|
</fieldset>
|
||||||
<form><fieldset>
|
<form><fieldset>
|
||||||
<p><label for=text>Text:</label>
|
<p><label for=text>Text:</label>
|
||||||
<input id=text name=text value='{{.Text}}'>
|
<input id=text name=text value='{{.Text}}'>
|
||||||
|
@ -215,6 +218,7 @@ func handle(w http.ResponseWriter, r *http.Request) {
|
||||||
PrinterErr error
|
PrinterErr error
|
||||||
InitErr error
|
InitErr error
|
||||||
MediaInfo *ql.MediaInfo
|
MediaInfo *ql.MediaInfo
|
||||||
|
Font *bdf.Font
|
||||||
Text string
|
Text string
|
||||||
Scale int
|
Scale int
|
||||||
}{
|
}{
|
||||||
|
@ -222,6 +226,7 @@ func handle(w http.ResponseWriter, r *http.Request) {
|
||||||
PrinterErr: printerErr,
|
PrinterErr: printerErr,
|
||||||
InitErr: initErr,
|
InitErr: initErr,
|
||||||
MediaInfo: mediaInfo,
|
MediaInfo: mediaInfo,
|
||||||
|
Font: font,
|
||||||
Text: r.FormValue("text"),
|
Text: r.FormValue("text"),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue