From bc879344e874dd110753d17083a2a7acf3136683 Mon Sep 17 00:00:00 2001 From: honggengwei Date: Fri, 9 Sep 2016 11:48:24 +0800 Subject: [PATCH] fix bug --- font.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/font.go b/font.go index d96e019..0974704 100644 --- a/font.go +++ b/font.go @@ -104,7 +104,7 @@ func (this *fontManager) parseFontContent(cont string) (*font, error) { header := strings.Split(lines[0], " ") font := &font{} - font.hardblank = header[0][len(header)-1:] + font.hardblank = header[0][len(header[0])-1:] font.height, _ = strconv.Atoi(header[1]) commentEndLine, _ := strconv.Atoi(header[5])