feat: support get and set default font
This commit is contained in:
parent
2ed86a81d0
commit
de4250f60b
6 changed files with 24 additions and 10 deletions
3
theme.go
3
theme.go
|
|
@ -24,7 +24,6 @@ package charts
|
|||
|
||||
import (
|
||||
"github.com/golang/freetype/truetype"
|
||||
"github.com/wcharczuk/go-chart/v2"
|
||||
"github.com/wcharczuk/go-chart/v2/drawing"
|
||||
)
|
||||
|
||||
|
|
@ -311,7 +310,7 @@ func (t *themeColorPalette) GetFont() *truetype.Font {
|
|||
if t.font != nil {
|
||||
return t.font
|
||||
}
|
||||
f, _ := chart.GetDefaultFont()
|
||||
f, _ := GetDefaultFont()
|
||||
return f
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue