private static void CreateIcon(IconSet set, XElement root, XElement glyph) { XElement path = glyph.Descendants(XName.Get("path", SvgNs)).First(); string name = glyph.Attribute(XName.Get("id")).Value; string pathData = path.Attribute(XName.Get("d")).Value; Icon icon = new Icon(); icon.Id = set.Icons.Count; icon.Tags = new[] { name }; icon.Paths = new[] { pathData }; IconSelection selection = new IconSelection(); selection.Order = icon.Id; selection.Id = icon.Id; selection.PrevSize = 32; selection.Code = GetCodeForIcon(name); selection.TempChar = "" + ((char)selection.Code); selection.Ligatures = ""; set.Icons.Add(icon); set.Selection.Add(selection); }