func (pc PieChart) GetFont() *truetype.Font {
	if pc.Font == nil {
		return pc.defaultFont
	}
	return pc.Font
}
GetFont returns the text font.
package chart
import (
	"errors"
	"fmt"
	"io"
	"github.com/golang/freetype/truetype"
)
type PieChart struct {
	Title      string
	TitleStyle Style
	ColorPalette ColorPalette
	Width  int
	Height int
	DPI    float64
	Background Style
	Canvas     Style
	SliceStyle Style
	Font        *truetype.Font
	defaultFont *truetype.Font
	Values   []Value
	Elements []Renderable
}
func (pc PieChart) GetDPI(defaults ...float64) float64 {
	if pc.DPI == 0 {
		if len(defaults) > 0 {
			return defaults[0]
		}
		return DefaultDPI
	}
	return pc.DPI
}