import { ConvertFontWithFontForgeNodeCommandInputModel, } from '../../../../code/type';
import { buildCommandSequence, getCommand, } from '../../../../code/tool/shared/command.js';
export async function buildCommandToConvertFontWithFontForge(source) {
    const input = ConvertFontWithFontForgeNodeCommandInputModel.parse(source);
    const cmd = getCommand(`fontforge`);
    cmd.link.push(`-lang=ff`, `-c`, `'Open($1); Generate($2)'`, `"${input.input.file.path}"`, `"${input.output.file.path}"`);
    return buildCommandSequence(cmd);
}
//# sourceMappingURL=shared.js.map