summaryrefslogtreecommitdiff
path: root/xmlStyles.go
diff options
context:
space:
mode:
Diffstat (limited to 'xmlStyles.go')
-rw-r--r--xmlStyles.go13
1 files changed, 4 insertions, 9 deletions
diff --git a/xmlStyles.go b/xmlStyles.go
index fc53f77..5c198e7 100644
--- a/xmlStyles.go
+++ b/xmlStyles.go
@@ -82,8 +82,9 @@ type xlsxFonts struct {
Font []*xlsxFont `xml:"font"`
}
-// font directly maps the font element.
-type font struct {
+// xlsxFont directly maps the font element. This element defines the
+// properties for one of the fonts used in this workbook.
+type xlsxFont struct {
Name *attrValString `xml:"name"`
Charset *attrValInt `xml:"charset"`
Family *attrValInt `xml:"family"`
@@ -100,12 +101,6 @@ type font struct {
Scheme *attrValString `xml:"scheme"`
}
-// xlsxFont directly maps the font element. This element defines the properties
-// for one of the fonts used in this workbook.
-type xlsxFont struct {
- Font string `xml:",innerxml"`
-}
-
// xlsxFills directly maps the fills element. This element defines the cell
// fills portion of the Styles part, consisting of a sequence of fill records. A
// cell fill consists of a background color, foreground color, and pattern to be
@@ -262,7 +257,7 @@ type xlsxDxf struct {
// dxf directly maps the dxf element.
type dxf struct {
- Font *font `xml:"font"`
+ Font *xlsxFont `xml:"font"`
NumFmt *xlsxNumFmt `xml:"numFmt"`
Fill *xlsxFill `xml:"fill"`
Alignment *xlsxAlignment `xml:"alignment"`