add render

This commit is contained in:
honggengwei
2014-10-16 00:05:21 +08:00
parent 84d4777a36
commit 876cbb5f6b

22
figlet/render.go Normal file
View File

@@ -0,0 +1,22 @@
package figlet
import ()
type AsciiRender struct {
fontMgr *FontManager
}
func NewAsciiRender() *AsciiRender {
this := &AsciiRender{}
this.fontMgr = NewFontManager()
return this
}
func (this *AsciiRender) LoadFont(fontPath string) error {
return this.fontMgr.LoadFont(fontPath)
}
func (this *AsciiRender) Render(asciiStr string, options interface{}) error {
return nil
}