Documentation
¶
Overview ¶
Package fonts describes the installed faces a desktop page can choose. It returns names and CSS traits, never font files or their paths.
Index ¶
Constants ¶
const Available = true
Variables ¶
This section is empty.
Functions ¶
func Validate ¶
Validate also accepts an absent choice, which keeps the platform's stack. Availability is separate: a font removed since it was chosen stays saved.
func ValidateFamily ¶
ValidateFamily checks a family chosen by name alone, the fallback font drawn after the chosen ones: "" is none, which keeps the stacks as they are.
Types ¶
type Face ¶
type Face struct {
Family string `json:"family"`
Name string `json:"name"`
Weight float64 `json:"weight"`
Style string `json:"style"`
Stretch float64 `json:"stretch"`
}
Face is one installed style. Name is the font's own style name; Style is its CSS slope. Stretch is a percentage, and Weight is an OpenType weight.