Ejemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            SaveFileDialog fd = new SaveFileDialog();

            fd.Filter = "All Prototype Font Files|*.fnt;*.pro";
            if (fd.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            string FN = Path.GetDirectoryName(fd.FileName) + "\\" + Path.GetFileNameWithoutExtension(fd.FileName);


            Font.UpdateGlyphs(Glyphs, out byte[] FNT, out byte[] PRO);

            File.WriteAllBytes(FN + ".fnt", FNT);
            File.WriteAllBytes(FN + ".pro", PRO);

            MessageBox.Show("Saved");
        }