저는 현재 fontforge를 사용하는 프로젝트를 작성하고 있습니다. C#에서 프로세스로 bash.exe를 시작하고 명령 줄 인수로 fontforge를 실행합니다.
다음은 예입니다 :
Process p = new Process();
string cygwinDir = @"c:\cygwin\bin";
p.StartInfo.FileName = Path.Combine(cygwinDir, "bash.exe");
p.StartInfo.Arguments = "--login -c \"fontforge.exe -script '" + this.cygwinWorkPath + "script.pe";
p.StartInfo.WorkingDirectory = this.windowsWorkPath;
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.Start();
p.WaitForExit();
var standardError = p.StandardError.ReadToEnd();
var standardOutput = p.StandardOutput.ReadToEnd();
var exitCode = p.ExitCode;
cygwinWorkpath은/myworkfolder 같은 것입니다 및 windowsWorkPath는 C와 같다 : \ Cygwin에서 \ myworkfolder.
사용 가능한 COM 또는 .net 라이브러리가있는 경우. 그래 넌 할수있어. 또는 그렇지 않은 경우 –