MCPcopy
hub / github.com/g3n/engine / SetFont

Method SetFont

gui/label.go:159–163  ·  view source on GitHub ↗

SetFont sets the font.

(f *text.Font)

Source from the content-addressed store, hash-verified

157
158// SetFont sets the font.
159func (l *Label) SetFont(f *text.Font) {
160
161 l.font = f
162 l.SetText(l.text)
163}
164
165// Font returns the font.
166func (l *Label) Font() *text.Font {

Callers

nothing calls this directly

Calls 1

SetTextMethod · 0.95

Tested by

no test coverage detected