 		@_.id = id
 		@_.sm = sm
 		@size = parseInt xmlobj.sz?[0].$.val
-		@_.color = xmlobj.color?[0].$
+		colorAttrs = xmlobj.color?[0].$ || {}
+		color = null
+		if colorAttrs.rgb
+			color = colorAttrs.rgb
+		else if colorAttrs.indexed
+			color = COLOR_TABLE[colorAttrs.indexed]
+		else if colorAttrs.theme
+			@_.color_theme = colorAttrs.theme
+			color = @_.sm._.theme.getColor(colorAttrs.theme)
+
+		@color = color
 		@name = xmlobj.name?[0].$.val
-		@_.charset = parseInt xmlobj.charset?[0].$.val
+		#@_.charset = parseInt xmlobj.charset?[0].$.val
 		#@_.family = parseInt xmlobj.family?[0].$.val
-		@_.scheme = xmlobj.scheme?[0].$.val
+		#@_.scheme = xmlobj.scheme?[0].$.val
 
 	Object.defineProperties @prototype,
 		"id":
 			get: -> @_.id
-		"color":
-			get: -> @_.color
 		"charset":
 			get: -> @_.charset
 		"scheme":

		if @name
			obj.name = [{$:{val:@name}}]

		obj

module.exports = Font



	toXmlObj: ->
		obj = @_.xmlobj

		if @size
			obj.sz = [{$:{val:@size}}]
