private void button1_Click(object sender, EventArgs e) { using (var ofd = new OpenFileDialog()) { if (ofd.ShowDialog() == DialogResult.OK) { var fontFile = new TrueTypeFile(ofd.FileName); var font = new GameUtilsFont(fontFile); font.Save(font.FontName + ".guf"); //glyph = fontFile.Glyphs[fontFile.GlyphDictionary[' ']]; //triGlyph = font.glyphs[font.glyphDictionary[' ']]; //Invalidate(); } } }