 
 
 	toXmlObj: ->
-		obj = {}
+		obj = @_.xmlobj
 
 		if @size
 			obj.sz = [{$:{val:@size}}]

		@_.id = id
		@_.sm = sm
		@size = parseInt xmlobj.sz?[0].$.val
		@_.color = xmlobj.color?[0].$
		@name = xmlobj.name?[0].$.val
		@_.charset = parseInt xmlobj.charset?[0].$.val
		#@_.family = parseInt xmlobj.family?[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}}]

		if @color
			obj.color = [{$:{rgb:@color}}]

		obj

module.exports = Font
