From dc8d81915d23c87241fef944bbed9ac69101feb1 Mon Sep 17 00:00:00 2001 From: Steven Edwards Date: Tue, 1 Sep 2015 16:10:14 -0400 Subject: [PATCH] Set f.nameRecord to its name and style. Code was returning from parseHead before setting the nameRecord. --- truetype/truetype.go | 1 + 1 file changed, 1 insertion(+) diff --git a/truetype/truetype.go b/truetype/truetype.go index 6741826..05bb9cc 100644 --- a/truetype/truetype.go +++ b/truetype/truetype.go @@ -352,6 +352,7 @@ func (f *Font) parseName() error { } if font.fontInfo[0] != "" && font.fontInfo[1] != "" { + f.nameRecord = font return nil } }