From 95702eead4d148c6111f5a3ef7ef7cbc0c906b49 Mon Sep 17 00:00:00 2001 From: CodeLingo Bot Date: Wed, 12 Dec 2018 02:30:35 +1300 Subject: Fix comments according to best practices by effective go (#217) * Fix comments according to best practices by effective go * Update font.go * Update fpdf_test.go * Update fpdf.go * Update example.go * Update util.go --- font.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'font.go') diff --git a/font.go b/font.go index 98bdf90..7443a30 100644 --- a/font.go +++ b/font.go @@ -81,7 +81,7 @@ func loadMap(encodingFileStr string) (encList encListType, err error) { return } -// Return informations from a TrueType font +// getInfoFromTrueType returns information from a TrueType font func getInfoFromTrueType(fileStr string, msgWriter io.Writer, embed bool, encList encListType) (info fontInfoType, err error) { var ttf TtfType ttf, err = TtfParse(fileStr) @@ -166,7 +166,7 @@ func segmentRead(r io.Reader) (s segmentType, err error) { // -rw-r--r-- 1 root root 9532 2010-04-22 11:27 /usr/share/fonts/type1/mathml/Symbol.afm // -rw-r--r-- 1 root root 37744 2010-04-22 11:27 /usr/share/fonts/type1/mathml/Symbol.pfb -// Return informations from a Type1 font +// getInfoFromType1 return information from a Type1 font func getInfoFromType1(fileStr string, msgWriter io.Writer, embed bool, encList encListType) (info fontInfoType, err error) { if embed { var f *os.File @@ -310,7 +310,7 @@ func makeFontDescriptor(info *fontInfoType) { // dump(info.Desc.FontBBox) } -// Build differences from reference encoding +// makeFontEncoding builds differences from reference encoding func makeFontEncoding(encList encListType, refEncFileStr string) (diffStr string, err error) { var refList encListType if refList, err = loadMap(refEncFileStr); err != nil { -- cgit v1.2.1-24-ge1ad