- xnode_label_prop = xmlNewNode (NULL, "font");
- xmlNodeSetContent (xnode_label_prop, g_strdup (priv->label->font));
- xmlAddChild (xnode_label, xnode_label_prop);
+ xnode_font = xmlNewNode (NULL, "font");
+ xmlAddChild (xnode_label, xnode_font);
+
+ xnode_font_prop = xmlNewNode (NULL, "name");
+ xmlNodeSetContent (xnode_font_prop, g_strdup (priv->label->font->name));
+ xmlAddChild (xnode_font, xnode_font_prop);
+
+ xnode_font_prop = xmlNewNode (NULL, "size");
+ xmlNodeSetContent (xnode_font_prop, g_strdup_printf ("%d", priv->label->font->size));
+ xmlAddChild (xnode_font, xnode_font_prop);
+
+ xnode_font_prop = xmlNewNode (NULL, "bold");
+ xmlNodeSetContent (xnode_font_prop, (priv->label->font->bold ? "y" : "n"));
+ xmlAddChild (xnode_font, xnode_font_prop);
+
+ xnode_font_prop = xmlNewNode (NULL, "underline");
+ xmlNodeSetContent (xnode_font_prop, (priv->label->font->underline ? "y" : "n"));
+ xmlAddChild (xnode_font, xnode_font_prop);
+
+ xnode_font_prop = xmlNewNode (NULL, "italic");
+ xmlNodeSetContent (xnode_font_prop, (priv->label->font->italic ? "y" : "n"));
+ xmlAddChild (xnode_font, xnode_font_prop);