Documentation
¶
Overview ¶
Package font names the typeface of a product and derives the names of its faces. It carries no bytes, no paths and no medium knowledge: web and PDF derive their font names from this single origin.
It travels inside the WASM binary, so it never reads a file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Declaration ¶ added in v0.0.2
type Declaration struct {
// contains filtered or unexported fields
}
Declaration is what a project declares in its font.go: the family and the subfolder where its faces live. It is built only with Declare, so a partial declaration cannot exist.
func Declare ¶ added in v0.0.2
func Declare(family Family, dir string) Declaration
Declare fixes the family and the subfolder where its faces live.
func (Declaration) Dir ¶ added in v0.0.2
func (d Declaration) Dir() string
Dir returns the declared subfolder, exactly as given.
func (Declaration) Family ¶ added in v0.0.2
func (d Declaration) Family() Family
Family returns the declared typeface name.
Click to show internal directories.
Click to hide internal directories.