private void ExportFontsClick(Object sender, EventArgs e) { foreach (FontToExport font in this.listBoxFonts.Items) { UIEngine engine = new UIEngine(); engine.Render = null; engine.VirtualFileSystem = new FilesSystem(this.textBoxSaveLocation.Text); engine.CacheFont(font.Font.Name, (int)font.Font.Size, font.Font.Bold, font.Font.Italic, "/"); } MessageBox.Show(this, "Exported", "Export fonts"); }