diff options
author | xuri <xuri.me@gmail.com> | 2019-06-07 09:16:55 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2019-06-07 09:16:55 +0800 |
commit | 3997dee1f58c81444733e1756da6138d4ce445f1 (patch) | |
tree | c1aeb252ecdd741dbcb10613399af1463b71a322 /styles.go | |
parent | cff16fa8118291fd885f3f3f75fa07e28bba5eec (diff) |
Fix #411, change font size to float type
Diffstat (limited to 'styles.go')
-rwxr-xr-x[-rw-r--r--] | styles.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/styles.go b/styles.go index e0e6f78..1cae186 100644..100755 --- a/styles.go +++ b/styles.go @@ -1981,7 +1981,7 @@ func (f *File) setFont(formatStyle *formatStyle) *xlsxFont { fnt := xlsxFont{ B: formatStyle.Font.Bold, I: formatStyle.Font.Italic, - Sz: &attrValInt{Val: formatStyle.Font.Size}, + Sz: &attrValFloat{Val: formatStyle.Font.Size}, Color: &xlsxColor{RGB: getPaletteColor(formatStyle.Font.Color)}, Name: &attrValString{Val: formatStyle.Font.Family}, Family: &attrValInt{Val: 2}, |