summaryrefslogtreecommitdiff
path: root/font.go
diff options
context:
space:
mode:
authorCodeLingo Bot <hello@codelingo.io>2018-12-12 02:30:35 +1300
committerKurt Jung <kurt.w.jung@gmail.com>2018-12-11 08:30:35 -0500
commit95702eead4d148c6111f5a3ef7ef7cbc0c906b49 (patch)
treee5e45521c4ee68d36cbad02aaa69153660fd8797 /font.go
parentfe48001d4389ad79f7402b3c654c03409babac29 (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.go6
1 files changed, 3 insertions, 3 deletions
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 {