类型 TextStyle

API 文档由 Go 源码生成,内容为英文。

type TextStyle struct {
	Size   float32
	Weight float32
	Color  Color
	// Mono selects the system fixed-pitch font instead of the proportional
	// one. Every ASCII character then advances by Canvas.CellSize(Size).
	Mono     bool
	MonoFace MonoFace
	// Direction is the paragraph direction of the line. The zero value takes it from
	// the first strong character of the text (UAX #9), which is what the platform's own
	// engine does. Set it for a line of a wrapped paragraph whose own first strong
	// character is not the paragraph's, so that every line of a Hebrew paragraph is
	// right-aligned and ordered right to left, including the one that starts with an
	// English name. It matters only to right-to-left text and neutral characters.
	Direction TextDirection
}

TextStyle describes one system-font line.