small layout fixes

This commit is contained in:
probandula
2016-10-28 13:59:58 +02:00
parent 71c8a58917
commit 75392a960c
2 changed files with 7 additions and 4 deletions

View File

@@ -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
} }

View File

@@ -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
} }