const (
MonoSystem MonoFace = iota
MonoClassic
)类型 MonoFace
API 文档由 Go 源码生成,内容为英文。
type MonoFace uint8MonoFace 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.
常量
构造函数
MonoFamily#
func MonoFamily(name string) MonoFaceMonoFamily 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.