text: "use strict";
  
  const { introduce, build, gc, merge } = require("megaminx");
  const italize = require("../common/italize");
  
  const fs = require("fs-extra");
  const path = require("path");
  
  const globalConfig = fs.readJsonSync(path.resolve(__dirname, "../../config.json"));
  
  module.exports = async function makeFont(ctx, config, argv) {
  	const a = await ctx.run(introduce, "a", {
  		from: argv.main,
  		prefix: "a"
  	});
  	const b = await ctx.run(introduce, "b", {
  		from: argv.kanji,
  		prefix: "b"
  	});
  	const c = await ctx.run(introduce, "c", {
  		from: argv.hangul,
  		prefix: "c"
  	});
  
  	// italize
  	if (argv.italize) {
  		italize(b, 10);
  		italize(c, 10);
  	}
  
  	await ctx.run(merge.below, "a", "a", "b", { mergeOTL: true });
  	await ctx.run(merge.below, "a", "a", "c", { mergeOTL: true });
  	await ctx.run(gc, "a");
  
  	await ctx.run(build, "a", { to: argv.o, optimize: true });
  };
  