diff options
author | Kurt <kurt.w.jung@gmail.com> | 2016-07-30 17:30:11 -0400 |
---|---|---|
committer | Kurt <kurt.w.jung@gmail.com> | 2016-07-30 17:30:11 -0400 |
commit | 80eb3e2a5ac1dddbbf7bd76e8065298f5257f122 (patch) | |
tree | c371e6e98088dfd2a85fcf2ba7cbfef7631cc79a /fpdf.go | |
parent | 700f7107d58a0e933260982522cfceb7648101ac (diff) |
Fix some glitches reported by goreportcard.com
Diffstat (limited to 'fpdf.go')
-rw-r--r-- | fpdf.go | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1405,8 +1405,9 @@ func (f *Fpdf) AddFont(familyStr, styleStr, fileStr string) { f.AddFontFromReader(familyStr, styleStr, file) } -// AddFontFronBytes imports a TrueType, OpenType or Type1 font and makes it -// available for use in the generated document. +// AddFontFromBytes imports a TrueType, OpenType or Type1 font from static +// bytes within the executable and makes it available for use in the generated +// document. // // family specifies the font family. The name can be chosen arbitrarily. If it // is a standard family name, it will override the corresponding font. This @@ -1417,7 +1418,7 @@ func (f *Fpdf) AddFont(familyStr, styleStr, fileStr string) { // "IB" for bold and italic combined. // // jsonFileBytes contain all bytes of JSON file. - +// // zFileBytes contain all bytes of Z file. func (f *Fpdf) AddFontFromBytes(familyStr string, styleStr string, jsonFileBytes []byte, zFileBytes []byte) { if f.err != nil { |