func LoadFont(fontFile string) (*TrueTypeFont, error) {
	fontBytes, err := os.ReadFile(fontFile)
	if err != nil {
		return nil, err
	}
	f, err := freetype.ParseFont(fontBytes)
	return &TrueTypeFont{f}, err
}
LoadFont loads a font file and returns *truetype.Font.
package fontx
import (
	"image/color"
	"os"
	"github.com/golang/freetype"
	"github.com/golang/freetype/truetype"
	"golang.org/x/image/font"
)
type FontConfig struct {
	Font     *truetype.Font
	FontSize float64
	Color    color.Color
}
type TrueTypeFont struct {
	Font *truetype.Font
}