private void GenerateSvg(int size, TextWriter writer, bool fragment) { var iconBounds = GetIconBounds(size); var renderer = new SvgRenderer(size, size); iconGenerator.Generate(renderer, iconBounds, Style, hash); renderer.Save(writer, fragment); }