mirror of
https://github.com/KevinMidboe/motdGO.git
synced 2025-10-29 09:40:23 +00:00
change interface to accept []byte
This commit is contained in:
@@ -39,9 +39,9 @@ func (ar *AsciiRender) LoadFont(fontPath string) error {
|
||||
return ar.fontMgr.loadFontList(fontPath)
|
||||
}
|
||||
|
||||
// LoadBinDataFont loads provided bindata font string
|
||||
func (ar *AsciiRender) LoadBinDataFont(fontStr string, fontName string) error {
|
||||
return ar.fontMgr.loadBinDataFont(fontStr, fontName)
|
||||
// LoadBinDataFont loads provided font binary
|
||||
func (ar *AsciiRender) LoadBindataFont(fontBinary []byte, fontName string) error {
|
||||
return ar.fontMgr.loadBindataFont(fontBinary, fontName)
|
||||
}
|
||||
|
||||
// Render renders a string with the default options
|
||||
|
||||
Reference in New Issue
Block a user