File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -58,9 +58,12 @@ public static FontFamily GetFontFamily(string fontName)
58
58
private static void Main ( string [ ] args )
59
59
{
60
60
fontCollection = new PrivateFontCollection ( ) ;
61
- foreach ( string font in Directory . GetFiles ( "./fonts" ) )
61
+ if ( Directory . Exists ( "./fonts" ) )
62
62
{
63
- fontCollection . AddFontFile ( font ) ;
63
+ foreach ( string font in Directory . GetFiles ( "./fonts" ) )
64
+ {
65
+ fontCollection . AddFontFile ( font ) ;
66
+ }
64
67
}
65
68
66
69
encoderInfo = GetEncoderInfo ( "image/jpeg" ) ;
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ https://github.com/mycard/ImgGen/wiki/效果预览
15
15
文泉驿微米黑
16
16
方正隶变_GBK
17
17
MatrixBoldSmallCaps
18
+ 字体可安装至系统,也可放至fonts目录
18
19
19
20
生成卡图:
20
21
在执行目录创建pico目录,放入对应密码的中间图规格的png或jpg图片,运行ImgGen.exe,即可在picn目录内生成卡图。
You can’t perform that action at this time.
0 commit comments