summaryrefslogtreecommitdiff
path: root/styles.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2019-06-30 19:50:47 +0800
committerxuri <xuri.me@gmail.com>2019-06-30 19:50:47 +0800
commitdc8210d4a7d18f6425f6f18dc383b26778883715 (patch)
tree9c61ce5dc508581a1daed42bc01f87f12ec875f9 /styles.go
parent54def7eaad9ee0469ca495b3661798919239384a (diff)
Update GoDoc and typo fixed
Diffstat (limited to 'styles.go')
-rw-r--r--styles.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/styles.go b/styles.go
index 1c01421..b246e30 100644
--- a/styles.go
+++ b/styles.go
@@ -1946,13 +1946,13 @@ func (f *File) NewConditionalStyle(style string) (int, error) {
}
// GetDefaultFont provides the default font name currently set in the workbook
-// Documents generated by excelize start with Calibri
+// Documents generated by excelize start with Calibri.
func (f *File) GetDefaultFont() string {
font := f.readDefaultFont()
return font.Name.Val
}
-// SetDefaultFont changes the default font in the workbook
+// SetDefaultFont changes the default font in the workbook.
func (f *File) SetDefaultFont(fontName string) {
font := f.readDefaultFont()
font.Name.Val = fontName
@@ -1962,7 +1962,7 @@ func (f *File) SetDefaultFont(fontName string) {
s.CellStyles.CellStyle[0].CustomBuiltIn = &custom
}
-// readDefaultFont provides an unmarshalled font value
+// readDefaultFont provides an unmarshalled font value.
func (f *File) readDefaultFont() *xlsxFont {
s := f.stylesReader()
return s.Fonts.Font[0]