Type MonoFace

type MonoFace uint8

MonoFace chooses one system-provided fixed-pitch family. The zero value is the platform's modern system mono. MonoClassic requests a traditional terminal face and falls back to MonoSystem when unavailable. Higher values are installed families named by MonoFamily.

Constants

const (
	MonoSystem MonoFace = iota
	MonoClassic
)

Constructors

MonoFamily#

func MonoFamily(name string) MonoFace

MonoFamily returns the face that draws fixed-pitch text in the installed font family called name ("JetBrains Mono", "Menlo"). The same name always gives the same face. A name that is empty, too long, holds a control character or would be one past the limit gives MonoSystem. Whether the family is installed is the platform's to answer: a name it does not know draws in its fallback fixed-pitch font, so an application should offer only names it has listed.