diff options
author | CodeLingo Bot <hello@codelingo.io> | 2018-12-12 02:30:35 +1300 |
---|---|---|
committer | Kurt Jung <kurt.w.jung@gmail.com> | 2018-12-11 08:30:35 -0500 |
commit | 95702eead4d148c6111f5a3ef7ef7cbc0c906b49 (patch) | |
tree | e5e45521c4ee68d36cbad02aaa69153660fd8797 /font.go | |
parent | fe48001d4389ad79f7402b3c654c03409babac29 (diff) |
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
Diffstat (limited to 'font.go')
-rw-r--r-- | font.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 { |