summaryrefslogtreecommitdiff
path: root/fpdf.go
diff options
context:
space:
mode:
authorKurt <kurt.w.jung@gmail.com>2016-07-30 17:30:11 -0400
committerKurt <kurt.w.jung@gmail.com>2016-07-30 17:30:11 -0400
commit80eb3e2a5ac1dddbbf7bd76e8065298f5257f122 (patch)
treec371e6e98088dfd2a85fcf2ba7cbfef7631cc79a /fpdf.go
parent700f7107d58a0e933260982522cfceb7648101ac (diff)
Fix some glitches reported by goreportcard.com
Diffstat (limited to 'fpdf.go')
-rw-r--r--fpdf.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/fpdf.go b/fpdf.go
index 35f6878..9e6c862 100644
--- a/fpdf.go
+++ b/fpdf.go
@@ -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 {