summaryrefslogtreecommitdiff
path: root/xmlStyles.go
diff options
context:
space:
mode:
Diffstat (limited to 'xmlStyles.go')
-rw-r--r--xmlStyles.go24
1 files changed, 22 insertions, 2 deletions
diff --git a/xmlStyles.go b/xmlStyles.go
index 14b5e4b..682c5d3 100644
--- a/xmlStyles.go
+++ b/xmlStyles.go
@@ -57,11 +57,23 @@ type xlsxColor struct {
Tint float64 `xml:"tint,attr,omitempty"`
}
-// xlsxFonts directly maps the fonts element. This element contains all font
+// xlsxFonts directly maps the font element. This element contains all font
// definitions for this workbook.
type xlsxFonts struct {
Count int `xml:"count,attr"`
- Font []*xlsxFont `xml:"font,omitempty"`
+ Font []*xlsxFont `xml:"font"`
+}
+
+// font directly maps the font element.
+type font struct {
+ B bool `xml:"b,omitempty"`
+ I bool `xml:"i,omitempty"`
+ U *attrValString `xml:"u"`
+ Sz *attrValInt `xml:"sz"`
+ Color *xlsxColor `xml:"color"`
+ Name *attrValString `xml:"name"`
+ Family *attrValInt `xml:"family"`
+ Scheme *attrValString `xml:"scheme"`
}
// xlsxFont directly maps the font element. This element defines the properties
@@ -283,6 +295,14 @@ type formatCellStyle struct {
Color []string `json:"color"`
Shading int `json:"shading"`
} `json:"fill"`
+ Font *struct {
+ Bold bool `json:"bold"`
+ Italic bool `json:"italic"`
+ Underline string `json:"underline"`
+ Family string `json:"family"`
+ Size int `json:"size"`
+ Color string `json:"color"`
+ } `json:"font"`
Alignment *struct {
Horizontal string `json:"horizontal"`
Indent int `json:"indent"`