Commit 81b28eee authored by mercury233's avatar mercury233

fix fonts dir

parent 81111245
......@@ -58,9 +58,12 @@ namespace ImgGen
private static void Main(string[] args)
{
fontCollection = new PrivateFontCollection();
foreach (string font in Directory.GetFiles("./fonts"))
if (Directory.Exists("./fonts"))
{
fontCollection.AddFontFile(font);
foreach (string font in Directory.GetFiles("./fonts"))
{
fontCollection.AddFontFile(font);
}
}
encoderInfo = GetEncoderInfo("image/jpeg");
......
......@@ -15,6 +15,7 @@ https://github.com/mycard/ImgGen/wiki/效果预览
文泉驿微米黑
方正隶变_GBK
MatrixBoldSmallCaps
字体可安装至系统,也可放至fonts目录
生成卡图:
在执行目录创建pico目录,放入对应密码的中间图规格的png或jpg图片,运行ImgGen.exe,即可在picn目录内生成卡图。
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment