Documentation ¶
Overview ¶
Package gofontweb provides embedded Go fonts in woff2 format.
Usage ¶
You can plug it into your web server code like this:
mux := http.NewServeMux() mux.Handle("/assets/", http.StripPrefix("/assets/", http.FileServer(http.FS(gofontweb.FS()))))
Then in your HTML link to the “go.css” file to set up all the supported font faces:
<link rel=stylesheet href=/assets/go.css>
This stylesheet declares the following font families:
- Go
- Go Medium
- Go Smallcaps
- Go Mono
You can find the full example in “example” subdirectory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.