public override XmlString Format(Font font)
 {
     return(new XmlString(string.Format("{0};{1};{2};{3};{4};{5}",
                                        GetFontFamilyName(font.FontFamily),
                                        Float2XmlSerializer.FormatG8(font.Size),
                                        font.Style,
                                        font.Unit,
                                        font.GdiCharSet,
                                        font.GdiVerticalFont)));
 }
 public override Font Parse(XmlString fontData)
 {
     string[] tokens = fontData.Data.Split(';');
     return(new Font(
                GetFontFamily(tokens[0]),
                Float2XmlSerializer.ParseG8(tokens[1]),
                (FontStyle)Enum.Parse(typeof(FontStyle), tokens[2]),
                (GraphicsUnit)Enum.Parse(typeof(GraphicsUnit), tokens[3]),
                byte.Parse(tokens[4]),
                bool.Parse(tokens[5])));
 }