mirror of
				https://github.com/KevinMidboe/motdGOi.git
				synced 2025-10-29 17:50:24 +00:00 
			
		
		
		
	small layout fixes
This commit is contained in:
		
							
								
								
									
										2
									
								
								font.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								font.go
									
									
									
									
									
								
							| @@ -28,7 +28,7 @@ type font struct { | |||||||
| 	hardblank string | 	hardblank string | ||||||
| 	// Height of one char | 	// Height of one char | ||||||
| 	height int | 	height int | ||||||
| 	// | 	// A string for each line of the char | ||||||
| 	fontSlice []string | 	fontSlice []string | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -30,10 +30,13 @@ type fontManager struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| // Create a new fontmanager | // Create a new fontmanager | ||||||
|  | // Initializes the fontManager, | ||||||
|  | // loads the builtin fonts and returns it | ||||||
| func newFontManager() *fontManager { | func newFontManager() *fontManager { | ||||||
| 	fm := &fontManager{} | 	fm := &fontManager{ | ||||||
| 	fm.fontLib = make(map[string]*font) | 		fontLib:  make(map[string]*font), | ||||||
| 	fm.fontList = make(map[string]string) | 		fontList: make(map[string]string), | ||||||
|  | 	} | ||||||
| 	fm.loadBuildInFont() | 	fm.loadBuildInFont() | ||||||
| 	return fm | 	return fm | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user