feat: support get and set default font

This commit is contained in:
vicanso 2022-11-12 20:01:36 +08:00
parent 2ed86a81d0
commit de4250f60b
6 changed files with 24 additions and 10 deletions

View file

@ -149,7 +149,7 @@ func NewPainter(opts PainterOptions, opt ...PainterOption) (*Painter, error) {
}
font := opts.Font
if font == nil {
f, err := chart.GetDefaultFont()
f, err := GetDefaultFont()
if err != nil {
return nil, err
}