summaryrefslogtreecommitdiff
path: root/comment.go
diff options
context:
space:
mode:
authorHarris <mike.harris@cerner.com>2019-04-25 11:24:25 -0500
committerHarris <mike.harris@cerner.com>2019-05-23 17:01:30 -0500
commitb1c9884f6d186bd1bfb4fc1d34061856345b8530 (patch)
tree25a44aa230fa674960dd5aa45b857b0a45e0c85b /comment.go
parentf91f548614a7182ce66d55d10ed311e9b7e08a2a (diff)
Add the ability to change the default font
Closes #390
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,