diff options
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 { |