public void ImportFile(string srcFile, string targetName, string targetDir) { string[] output = this.GetOutputFiles(srcFile, targetName, targetDir); Font res = new Font(); res.LoadCustomFamilyData(srcFile); res.ReloadData(); res.Save(output[0]); }
public void ImportFile(string srcFile, string targetName, string targetDir) { string[] output = this.GetOutputFiles(srcFile, targetName, targetDir); Font font = new Font(); font.SourcePath = srcFile; font.EmbeddedTrueTypeFont = File.ReadAllBytes(srcFile); font.RenderGlyphs(); font.Save(output[0]); }