私は現在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ライブラリがある場合。はい、できます。またはそうでない場合はできません –