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
// Height of one char
height int
//
// A string for each line of the char
fontSlice []string
}

View File

@@ -30,10 +30,13 @@ type fontManager struct {
}
// Create a new fontmanager
// Initializes the fontManager,
// loads the builtin fonts and returns it
func newFontManager() *fontManager {
fm := &fontManager{}
fm.fontLib = make(map[string]*font)
fm.fontList = make(map[string]string)
fm := &fontManager{
fontLib: make(map[string]*font),
fontList: make(map[string]string),
}
fm.loadBuildInFont()
return fm
}