interface_fonts.go 365 B

123456789101112
  1. package base64Captcha
  2. import "github.com/golang/freetype/truetype"
  3. // FontsStorage interface for working with fonts
  4. type FontsStorage interface {
  5. // LoadFontByName returns the font from the storage
  6. LoadFontByName(name string) *truetype.Font
  7. // LoadFontsByNames returns multiple fonts from storage
  8. LoadFontsByNames(assetFontNames []string) []*truetype.Font
  9. }