コード例 #1
0
ファイル: Form1.cs プロジェクト: Artentus/GameUtils
 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();
         }
     }
 }
コード例 #2
0
 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();
         }
     }
 }