summaryrefslogtreecommitdiff
path: root/comment.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2019-05-24 09:48:14 +0800
committerGitHub <noreply@github.com>2019-05-24 09:48:14 +0800
commit623375780586cbd323dc899e17d7235ac610505f (patch)
tree25a44aa230fa674960dd5aa45b857b0a45e0c85b /comment.go
parentf91f548614a7182ce66d55d10ed311e9b7e08a2a (diff)
parentb1c9884f6d186bd1bfb4fc1d34061856345b8530 (diff)
Merge pull request #391 from mlh758/390-change-default-font
Add the ability to change the default font
Diffstat (limited to 'comment.go')
-rw-r--r--comment.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/comment.go b/comment.go
index 3cf0c1d..af70820 100644
--- a/comment.go
+++ b/comment.go
@@ -239,6 +239,7 @@ func (f *File) addComment(commentsXML, cell string, formatSet *formatComment) {
},
}
}
+ defaultFont := f.GetDefaultFont()
cmt := xlsxComment{
Ref: cell,
AuthorID: 0,
@@ -251,7 +252,7 @@ func (f *File) addComment(commentsXML, cell string, formatSet *formatComment) {
Color: &xlsxColor{
Indexed: 81,
},
- RFont: &attrValString{Val: "Calibri"},
+ RFont: &attrValString{Val: defaultFont},
Family: &attrValInt{Val: 2},
},
T: a,
@@ -262,7 +263,7 @@ func (f *File) addComment(commentsXML, cell string, formatSet *formatComment) {
Color: &xlsxColor{
Indexed: 81,
},
- RFont: &attrValString{Val: "Calibri"},
+ RFont: &attrValString{Val: defaultFont},
Family: &attrValInt{Val: 2},
},
T: t,