mirror of
				https://github.com/KevinMidboe/motdGO.git
				synced 2025-10-29 17:50:24 +00:00 
			
		
		
		
	add render
This commit is contained in:
		
							
								
								
									
										22
									
								
								figlet/render.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								figlet/render.go
									
									
									
									
									
										Normal 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 | ||||
| } | ||||
		Reference in New Issue
	
	Block a user