diff options
author | Harris <mike.harris@cerner.com> | 2019-04-25 11:24:25 -0500 |
---|---|---|
committer | Harris <mike.harris@cerner.com> | 2019-05-23 17:01:30 -0500 |
commit | b1c9884f6d186bd1bfb4fc1d34061856345b8530 (patch) | |
tree | 25a44aa230fa674960dd5aa45b857b0a45e0c85b /comment.go | |
parent | f91f548614a7182ce66d55d10ed311e9b7e08a2a (diff) |
Add the ability to change the default font
Closes #390
Diffstat (limited to 'comment.go')
-rw-r--r-- | comment.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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, |