func (fm *fontManager) getFont(fontName string) *font {
	_, ok := fm.fontLib[fontName]
	if !ok {
		err := fm.loadDiskFont(fontName)
		if err != nil {
			fontName = defaultFont
		}
	}
	return fm.fontLib[fontName]
}
Get a font by name
Default font if no other font could be loaded
package figlet4go
import (
	"errors"
	"io/ioutil"
	"os"
	"path/filepath"
	"strconv"
	"strings"
)
const defaultFont string = "standard"
const extension string = "flf"
var defaultFonts []string = []string{
	"standard",
	"larry3d",
}
type fontManager struct {
	fontLib map[string]*font
	fontList map[string]string
}
func newFontManager() *fontManager {
	fm := &fontManager{
		fontLib:  make(map[string]*font),
		fontList: make(map[string]string),
	}
	fm.loadBuildInFont()
	return fm
}