MCPcopy Create free account
hub / github.com/cogentcore/core / Defaults

Method Defaults

plot/text.go:33–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31}
32
33func (ts *TextStyle) Defaults() {
34 ts.FontRender.Defaults()
35 ts.Color = colors.Scheme.OnSurface
36 ts.Align = styles.Center
37 if DefaultFontFamily != "" {
38 ts.FontRender.Family = DefaultFontFamily
39 }
40}
41
42func (ts *TextStyle) openFont(pt *Plot) {
43 if ts.Font.Face == nil {

Callers

nothing calls this directly

Calls 1

DefaultsMethod · 0.65

Tested by

no test coverage detected