Exemplo n.º 1
0
        public static XElement ToXml(Glyph glyph)
        {
            var xGlyph = new XElement("Glyph");

            xGlyph.Add(new XAttribute("map", glyph.Code));
            xGlyph.Add(XGlyphShape.ToXml(glyph));
            return(xGlyph);
        }
Exemplo n.º 2
0
        public static Glyph FromXml(XElement xGlyph)
        {
            var res = new Glyph {
                Code = xGlyph.RequiredUShortAttribute("map"),
            };

            XGlyphShape.FromXml(xGlyph.Element("GlyphShape"), res);
            return(res);
        }