summaryrefslogtreecommitdiff
path: root/styles.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2019-09-23 21:50:03 +0800
committerxuri <xuri.me@gmail.com>2019-09-23 21:50:03 +0800
commit75d66a03f33f25c29167c5f75ee8a4cc58598420 (patch)
treeb6377075fe0bcbf98f285272a443e66e07596d64 /styles.go
parent3280e1b68664e12143cbd2b3a408f9f494a72897 (diff)
Fix #482, font strike style support
Diffstat (limited to 'styles.go')
-rw-r--r--styles.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/styles.go b/styles.go
index 4d6071a..3244be2 100644
--- a/styles.go
+++ b/styles.go
@@ -1993,6 +1993,10 @@ func (f *File) setFont(formatStyle *formatStyle) *xlsxFont {
if fnt.Name.Val == "" {
fnt.Name.Val = f.GetDefaultFont()
}
+ if formatStyle.Font.Strike {
+ strike := true
+ fnt.Strike = &strike
+ }
val, ok := fontUnderlineType[formatStyle.Font.Underline]
if ok {
fnt.U = &attrValString{Val: val}