()
| 31 | } |
| 32 | |
| 33 | func (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 | |
| 42 | func (ts *TextStyle) openFont(pt *Plot) { |
| 43 | if ts.Font.Face == nil { |